1. Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/boot/actuate/health/OrderedHealthAggregator
    pom.xml缺少jar或者存在同名jar

2.@EnableFeignClients是
微服务 通过EnableFeignClients调用其他服务的api
pom.xml需要配置

  <!--引入zuul依赖:-->
	  <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-zuul</artifactId>
            <version>1.4.0.RELEASE</version>
        </dependency>
Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐