12345678910111213141516171819202122232425262728293031323334 |
- package com.yihu.ehr;
- import org.springframework.boot.SpringApplication;
- import org.springframework.boot.actuate.autoconfigure.ManagementWebSecurityAutoConfiguration;
- import org.springframework.boot.actuate.autoconfigure.MetricExportAutoConfiguration;
- import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
- import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
- import org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration;
- import org.springframework.boot.builder.SpringApplicationBuilder;
- import org.springframework.boot.web.support.SpringBootServletInitializer;
- import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
- import org.springframework.cloud.netflix.feign.EnableFeignClients;
- import org.springframework.context.annotation.ComponentScan;
- import org.springframework.context.annotation.Configuration;
- import org.springframework.data.web.config.EnableSpringDataWebSupport;
- @Configuration
- @EnableAutoConfiguration(exclude = {
- SecurityAutoConfiguration.class})
- @ComponentScan
- @EnableDiscoveryClient
- @EnableFeignClients
- @EnableSpringDataWebSupport
- public class HealthProfileService extends SpringBootServletInitializer {
- public static void main(String[] args) {
- SpringApplication.run(HealthProfileService.class, args);
- }
- @Override
- protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
- return application.sources(HealthProfileService.class);
- }
- }
|