报错信息
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nacosConfigurationPropertiesBinder': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.alibaba.boot.nacos.config.binder.NacosBootConfigurationPropertiesBinder]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata
at.......
原因是我的spring boot版本是2.5.3 , nacos config的版本是0.2.7
spring boot 2.4之后删掉了ConfigurationBeanFactoryMetadata
降低springboot的版本
我换了