I have this problem because I didn’t choose the spring boot version and cloud version when I created the project by imitating the grain mall
You can check whether your springboot version is incompatible with the springcloud version
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
You can change the version number in the pom.xml file
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.8.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> <groupId>com.xiaol.guliproduct</groupId> <artifactId>product</artifactId> <version>0.0.1-SNAPSHOT</version> <name>product</name> <description>Welcome</description> <properties> <java.version>1.8</java.version> <spring-cloud.version>Greenwich.SR3</spring-cloud.version> </properties>
Similar Posts:
- Error creating bean with name ‘com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration’
- Springcloud: gateway module startup error
- Eureka server project startup error handling
- Unregistering JMX-exposed beans on shutdown Solution
- Springboot Import Error: Cannot resolve org.springframework.boot:spring-boot-autoconfigure:2.6.2
- Error reporting life processing instructions for building spring boot project
- Spring cloud consumer feign injection error [How to Solve]
- [Solved] Springboot Use Redis Error: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘redisTemplate’ defined in class path resource
- Springboot startup error start bean ‘eurekaautoserviceregistration’ NullPointerException
- Springboot always reports an error when importing JSP dependencies