启动 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>
就可以正常启动了
具体版本对应关系可以参考下官方文档文章来源:https://www.toymoban.com/news/detail-519993.html
报错细节文章来源地址https://www.toymoban.com/news/detail-519993.html
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]
到了这里,关于Post-processing of merged bean definition failed; spring cloud Eureka 启动报错的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!