SvrInspectionApplication.java 1.1 KB

1234567891011121314151617181920212223242526272829
  1. package com.yihu.ehr;
  2. import org.springframework.boot.SpringApplication;
  3. import org.springframework.boot.autoconfigure.SpringBootApplication;
  4. import org.springframework.boot.builder.SpringApplicationBuilder;
  5. import org.springframework.boot.web.support.SpringBootServletInitializer;
  6. import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
  7. import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
  8. import org.springframework.cloud.netflix.feign.EnableFeignClients;
  9. import org.springframework.data.web.config.EnableSpringDataWebSupport;
  10. import org.springframework.scheduling.annotation.EnableScheduling;
  11. @EnableEurekaClient
  12. @EnableDiscoveryClient
  13. @EnableFeignClients
  14. @SpringBootApplication
  15. @EnableScheduling
  16. public class SvrInspectionApplication extends SpringBootServletInitializer {
  17. public static void main(String[] args) {
  18. SpringApplication.run(SvrInspectionApplication.class, args);
  19. }
  20. @Override
  21. protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
  22. return application.sources(SvrInspectionApplication.class);
  23. }
  24. }