|
@@ -17,10 +17,12 @@ import org.springframework.context.annotation.ComponentScan;
|
|
@ComponentScan(basePackages = {"com.platform.*"})
|
|
@ComponentScan(basePackages = {"com.platform.*"})
|
|
@EnableDiscoveryClient
|
|
@EnableDiscoveryClient
|
|
@SpringBootApplication
|
|
@SpringBootApplication
|
|
-public class PlatformApplication implements ApplicationContextAware {
|
|
|
|
|
|
+public class PlatformApplication extends SpringBootServletInitializer implements ApplicationContextAware {
|
|
|
|
|
|
- public static void main(String[] args) {
|
|
|
|
- SpringApplication.run(PlatformApplication.class, args);
|
|
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
|
|
|
|
+ return builder.sources(PlatformApplication.class);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -28,4 +30,10 @@ public class PlatformApplication implements ApplicationContextAware {
|
|
SpringContextUtils.setApplicationContext(applicationContext);
|
|
SpringContextUtils.setApplicationContext(applicationContext);
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ public static void main(String[] args) {
|
|
|
|
+ SpringApplication.run(PlatformApplication.class, args);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|