新创建的项目打包错误

来源: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回答

廖师兄

2019-08-14

试试先跳过单侧看能打包成功吗?

1
5
廖师兄
回复
简单_阳
你把项目代码push到git(github, 慕课网git都行),发我链接,我这边运行看看。
2019-08-22
共5条回复

SpringCloud Finchley(M2+RELEASE+SR2)微服务实战

SpringCloud组件实现微服务,【已升级Finchley.Release】

5672 学习 · 2489 问题

查看课程