irpas技术客

Failed to process import candidates for configuration class [com.wjm.springcloud

大大的周 2327

Failed to process import candidates for configuration class [com.wjm.springcloud.Application]; nested exception is java.io.FileN

这说明springboot 中版本冲突了

例如

<dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <version>2.4.1</version> </dependency> <!-- Hystrix Dashboard --> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-hystrix-dashboard</artifactId> <version>1.4.7.RELEASE</version> </dependency> </dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-hystrix-dashboard</artifactId> <version>1.4.7.RELEASE</version> </dependency> </dependencies>

默认带了springboot 但是我用的是 2.4.1的springboot 所以 必须配合对应版本的

<!-- Hystrix Dashboard 底层实际上用了springboot所以不需要再倒入springboot-starter--> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-hystrix-dashboard</artifactId> <version>2.2.6.RELEASE</version> </dependency>

成功


1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,会注明原创字样,如未注明都非原创,如有侵权请联系删除!;3.作者投稿可能会经我们编辑修改或补充;4.本站不提供任何储存功能只提供收集或者投稿人的网盘链接。

标签: #failed #To #process #import #candidates #for #configuration #class