Browse Source

生产环境启动BUG

suxiaoyang 6 years ago
parent
commit
3a98c3b51a
2 changed files with 6 additions and 9 deletions
  1. 4 0
      pom.xml
  2. 2 9
      src/main/java/com/yihu/ehr/SvrEhrBasic.java

+ 4 - 0
pom.xml

@ -20,6 +20,10 @@
    <dependencies>
        <!-- true -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>

+ 2 - 9
src/main/java/com/yihu/ehr/SvrEhrBasic.java

@ -1,24 +1,17 @@
package com.yihu.ehr;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration;
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.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
@SpringBootApplication
public class SvrEhrBasic extends SpringBootServletInitializer {
	public static void main(String[] args) {