File tree Expand file tree Collapse file tree
runner-starter/src/main/java/org/apache/apisix/plugin/runner Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525
2626@ SpringBootApplication
2727public class PluginRunnerApplication {
28- private static ClassLoader PARENT_CLASS_LOADER ;
29- private static DynamicClassLoader CLASS_LOADER ;
3028
3129 @ Bean
3230 public ScheduledAnnotationBeanPostProcessor processor () {
@@ -35,10 +33,6 @@ public ScheduledAnnotationBeanPostProcessor processor() {
3533
3634 public static void main (String [] args ) {
3735
38- //load specified classes using dynamic class loader
39- PARENT_CLASS_LOADER = DynamicClassLoader .class .getClassLoader ();
40- CLASS_LOADER = new DynamicClassLoader (PARENT_CLASS_LOADER );
41- Thread .currentThread ().setContextClassLoader (CLASS_LOADER );
4236 new SpringApplicationBuilder (PluginRunnerApplication .class )
4337 .web (WebApplicationType .NONE )
4438 .run (args );
You can’t perform that action at this time.
0 commit comments