解决Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframewo

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>

你可能感兴趣的:(JAVA,java)