Post-processing of merged bean definition failed; spring cloud Eureka 启动报错
启动 Eureka 报错Post-processing of merged bean definition failedmerged bean过程又错 这时候要检查一下 Eureka 版本和Spring Boot 的版本对不对得上 ,我现在Spring Boot 版本是<version>2.7.0</version>Eureka版本是<version>2.2.2
·
启动 Eureka 报错 Post-processing of merged bean definition failed merged bean 过程又错 这时候要检查一下 Eureka 版本和Spring Boot 的版本对不对得上 ,我现在Spring Boot 版本是
<version>2.7.0</version>
Eureka 版本是
<version>2.2.2.RELEASE</version>
这样报错很正常版本不兼容,把Eureka 版本改成
<version>3.1.2</version>
就可以正常启动了
具体版本对应关系可以参考下官方文档
报错细节
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configurationPropertiesBeans' defined in class path resource [org/springframework/cloud/autoconfigure/ConfigurationPropertiesRebinderAutoConfiguration.class]: Post-processing of merged bean definition failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.springframework.cloud.context.properties.ConfigurationPropertiesBeans] from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:597) ~[spring-beans-5.3.20.jar:5.3.20]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.20.jar:5.3.20]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.20.jar:5.3.20]
更多推荐
已为社区贡献3条内容
所有评论(0)