新创建的项目打包错误
来源:3-2 Eureka Server

简单_阳
2019-08-14
新建spring初始化工程的时候,引用的springboot版本和springcloud版本和你的保持一致,settings配置文件用的是spring的仓库和你的保持一致,项目创建完之后,打包失败,但是编译和clean是正常的
截图示例:
打包错误信息
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.01 s <<< FAILURE! - in com.huamai.eureka.EurekaApplicationTests
contextLoads Time elapsed: 0.002 s <<< ERROR!
Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2019-08-14 17:49:26.425 ERROR 47724 — [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘configurationPropertiesBeans’ defined in org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.context.properties.ConfigurationPropertiesBeans]: Factory method ‘configurationPropertiesBeans’ threw exception; nested exception is java.lang.NoSuchFieldError: BINDER_BEAN_NAME
Caused by: java.lang.NoSuchFieldError: BINDER_BEAN_NAME
1回答
-
试试先跳过单侧看能打包成功吗?
152019-08-22
SpringCloud Finchley(M2+RELEASE+SR2)微服务实战
5672 学习 · 2489 问题
相似问题