HealthProfileService.java 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. package com.yihu.ehr;
  2. import org.springframework.boot.SpringApplication;
  3. import org.springframework.boot.actuate.autoconfigure.ManagementWebSecurityAutoConfiguration;
  4. import org.springframework.boot.actuate.autoconfigure.MetricExportAutoConfiguration;
  5. import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
  6. import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
  7. import org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration;
  8. import org.springframework.boot.builder.SpringApplicationBuilder;
  9. import org.springframework.boot.web.support.SpringBootServletInitializer;
  10. import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
  11. import org.springframework.cloud.netflix.feign.EnableFeignClients;
  12. import org.springframework.context.annotation.ComponentScan;
  13. import org.springframework.context.annotation.Configuration;
  14. import org.springframework.data.web.config.EnableSpringDataWebSupport;
  15. @Configuration
  16. @EnableAutoConfiguration(exclude = {
  17. SecurityAutoConfiguration.class})
  18. @ComponentScan
  19. @EnableDiscoveryClient
  20. @EnableFeignClients
  21. @EnableSpringDataWebSupport
  22. public class HealthProfileService extends SpringBootServletInitializer {
  23. public static void main(String[] args) {
  24. SpringApplication.run(HealthProfileService.class, args);
  25. }
  26. @Override
  27. protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
  28. return application.sources(HealthProfileService.class);
  29. }
  30. }