1234567891011121314151617181920212223242526272829 |
- package com.yihu.ehr;
- import org.springframework.boot.SpringApplication;
- import org.springframework.boot.autoconfigure.SpringBootApplication;
- 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.eureka.EnableEurekaClient;
- import org.springframework.cloud.netflix.feign.EnableFeignClients;
- import org.springframework.data.web.config.EnableSpringDataWebSupport;
- import org.springframework.scheduling.annotation.EnableScheduling;
- @EnableEurekaClient
- @EnableDiscoveryClient
- @EnableFeignClients
- @SpringBootApplication
- @EnableScheduling
- public class SvrInspectionApplication extends SpringBootServletInitializer {
- public static void main(String[] args) {
- SpringApplication.run(SvrInspectionApplication.class, args);
- }
- @Override
- protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
- return application.sources(SvrInspectionApplication.class);
- }
- }
|