当pom.xml中的spring-boot-starter-parent和spring-cloud-starter-netflix-eureka-server依赖的版本不一致是会发生以下错误:Error creating bean with name ‘configurationPropertiesBeans’ defined in class path resource [org/springframework/cloud/autoconfigure/ConfigurationPropertiesRebinderAutoConfiguration.class]
如:
在这里将两者的版本号version改为一致即可
最后再鼠标Reimport一下pom文件即可
运行成功:
启动spring-boot出现Error creating bean with name ‘configurationPropertiesBeans‘错误
最新推荐文章于 2024-05-28 22:09:14 发布