启动spring-boot出现Error creating bean with name ‘configurationPropertiesBeans‘ defined in class的报错

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configurationPropertiesBeans' defined in class path resource [org/springframework/cloud/autoconfigure/ConfigurationPropertiesRebinderAutoConfiguration.class]: 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.NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata

 

 

 原因:注册中心的springcloud 和webui中的springcloud的版本不一致

 

 

 

解决:将webui的springcloud的版本改到和注册中心的一致

 

 

posted @ 2021-06-06 17:37  郑小  阅读(9491)  评论(0编辑  收藏  举报