自学nacos那些事(1)

在尝试启动Nacos时遇到了BeanCreationException,具体错误为'ConfigurationPropertiesBeans'的bean创建失败,原因是一个NoClassDefFoundError,涉及类为'org.springframework.boot.context.properties.ConfigurationBeanFactoryMetadata'。错误源于Spring Boot和Nacos版本不匹配。通过更新Nacos到与Spring Boot版本兼容的版本解决了问题。推荐查看相关版本对应关系以避免类似问题。
摘要由CSDN通过智能技术生成

Nacos启动遇到的bug

bug信息

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
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658) ~[spring-beans-5.3.14.jar:5.3.14]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638) ~[spring-beans-5.3.14.jar:5.3.14]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) ~[spring-beans-5.3.14.jar:5.3.14]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) ~[spring-beans-5.3.14.jar:5.3.14]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[spring-beans-5.3.14.jar:5.3.14]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.14.jar:5.3.14]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean 0 ( A b s t r a c t B e a n F a c t o r y . j a v a : 335 )   [ s p r i n g − b e a n s − 5.3.14. j a r : 5.3.14 ] a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D e f a u l t S i n g l e t o n B e a n R e g i s t r y . g e t S i n g l e t o n ( D e f a u l t S i n g l e t o n B e a n R e g i s t r y . j a v a : 234 )   [ s p r i n g − b e a n s − 5.3.14. j a r : 5.3.14 ] a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t B e a n F a c t o r y . d o G e t B e a n ( A b s t r a c t B e a n F a c t o r y . j a v a : 333 )   [ s p r i n g − b e a n s − 5.3.14. j a r : 5.3.14 ] a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t B e a n F a c t o r y . g e t B e a n ( A b s t r a c t B e a n F a c t o r y . j a v a : 213 )   [ s p r i n g − b e a n s − 5.3.14. j a r : 5.3.14 ] a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . P o s t P r o c e s s o r R e g i s t r a t i o n D e l e g a t e . r e g i s t e r B e a n P o s t P r o c e s s o r s ( P o s t P r o c e s s o r R e g i s t r a t i o n D e l e g a t e . j a v a : 270 )   [ s p r i n g − c o n t e x t − 5.3.14. j a r : 5.3.14 ] a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . A b s t r a c t A p p l i c a t i o n C o n t e x t . r e g i s t e r B e a n P o s t P r o c e s s o r s ( A b s t r a c t A p p l i c a t i o n C o n t e x t . j a v a : 762 )   [ s p r i n g − c o n t e x t − 5.3.14. j a r : 5.3.14 ] a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . A b s t r a c t A p p l i c a t i o n C o n t e x t . r e f r e s h ( A b s t r a c t A p p l i c a t i o n C o n t e x t . j a v a : 567 )   [ s p r i n g − c o n t e x t − 5.3.14. j a r : 5.3.14 ] a t o r g . s p r i n g f r a m e w o r k . b o o t . S p r i n g A p p l i c a t i o n . r e f r e s h ( S p r i n g A p p l i c a t i o n . j a v a : 765 ) [ s p r i n g − b o o t − 2.5.8. j a r : 2.5.8 ] a t o r g . s p r i n g f r a m e w o r k . b o o t . S p r i n g A p p l i c a t i o n . r e f r e s h C o n t e x t ( S p r i n g A p p l i c a t i o n . j a v a : 445 ) [ s p r i n g − b o o t − 2.5.8. j a r : 2.5.8 ] a t o r g . s p r i n g f r a m e w o r k . b o o t . S p r i n g A p p l i c a t i o n . r u n ( S p r i n g A p p l i c a t i o n . j a v a : 338 ) [ s p r i n g − b o o t − 2.5.8. j a r : 2.5.8 ] a t o r g . s p r i n g f r a m e w o r k . b o o t . b u i l d e r . S p r i n g A p p l i c a t i o n B u i l d e r . r u n ( S p r i n g A p p l i c a t i o n B u i l d e r . j a v a : 143 )   [ s p r i n g − b o o t − 2.5.8. j a r : 2.5.8 ] a t o r g . s p r i n g f r a m e w o r k . c l o u d . b o o t s t r a p . B o o t s t r a p A p p l i c a t i o n L i s t e n e r . b o o t s t r a p S e r v i c e C o n t e x t ( B o o t s t r a p A p p l i c a t i o n L i s t e n e r . j a v a : 209 )   [ s p r i n g − c l o u d − c o n t e x t − 2.1.5. R E L E A S E . j a r : 2.1.5. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . c l o u d . b o o t s t r a p . B o o t s t r a p A p p l i c a t i o n L i s t e n e r . o n A p p l i c a t i o n E v e n t ( B o o t s t r a p A p p l i c a t i o n L i s t e n e r . j a v a : 114 )   [ s p r i n g − c l o u d − c o n t e x t − 2.1.5. R E L E A S E . j a r : 2.1.5. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . c l o u d . b o o t s t r a p . B o o t s t r a p A p p l i c a t i o n L i s t e n e r . o n A p p l i c a t i o n E v e n t ( B o o t s t r a p A p p l i c a t i o n L i s t e n e r . j a v a : 71 )   [ s p r i n g − c l o u d − c o n t e x t − 2.1.5. R E L E A S E . j a r : 2.1.5. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . e v e n t . S i m p l e A p p l i c a t i o n E v e n t M u l t i c a s t e r . d o I n v o k e L i s t e n e r ( S i m p l e A p p l i c a t i o n E v e n t M u l t i c a s t e r . j a v a : 176 )   [ s p r i n g − c o n t e x t − 5.3.14. j a r : 5.3.14 ] a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . e v e n t . S i m p l e A p p l i c a t i o n E v e n t M u l t i c a s t e r . i n v o k e L i s t e n e r ( S i m p l e A p p l i c a t i o n E v e n t M u l t i c a s t e r . j a v a : 169 )   [ s p r i n g − c o n t e x t − 5.3.14. j a r : 5.3.14 ] a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . e v e n t . S i m p l e A p p l i c a t i o n E v e n t M u l t i c a s t e r . m u l t i c a s t E v e n t ( S i m p l e A p p l i c a t i o n E v e n t M u l t i c a s t e r . j a v a : 143 )   [ s p r i n g − c o n t e x t − 5.3.14. j a r : 5.3.14 ] a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . e v e n t . S i m p l e A p p l i c a t i o n E v e n t M u l t i c a s t e r . m u l t i c a s t E v e n t ( S i m p l e A p p l i c a t i o n E v e n t M u l t i c a s t e r . j a v a : 131 )   [ s p r i n g − c o n t e x t − 5.3.14. j a r : 5.3.14 ] a t o r g . s p r i n g f r a m e w o r k . b o o t . c o n t e x t . e v e n t . E v e n t P u b l i s h i n g R u n L i s t e n e r . e n v i r o n m e n t P r e p a r e d ( E v e n t P u b l i s h i n g R u n L i s t e n e r . j a v a : 82 )   [ s p r i n g − b o o t − 2.5.8. j a r : 2.5.8 ] a t o r g . s p r i n g f r a m e w o r k . b o o t . S p r i n g A p p l i c a t i o n R u n L i s t e n e r s . l a m b d a 0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.14.jar:5.3.14] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.14.jar:5.3.14] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.14.jar:5.3.14] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:213) ~[spring-beans-5.3.14.jar:5.3.14] at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:270) ~[spring-context-5.3.14.jar:5.3.14] at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:762) ~[spring-context-5.3.14.jar:5.3.14] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:567) ~[spring-context-5.3.14.jar:5.3.14] at org.springframework.boot.SpringApplication

  • 24
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
经导师精心指导并认可、获 98 分的毕业设计项目!【项目资源】:微信小程序。【项目说明】:聚焦计算机相关专业毕设及实战操练,可作课程设计与期末大作业,含全部源码,能直用于毕设,经严格调试,运行有保障!【项目服务】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。 经导师精心指导并认可、获 98 分的毕业设计项目!【项目资源】:微信小程序。【项目说明】:聚焦计算机相关专业毕设及实战操练,可作课程设计与期末大作业,含全部源码,能直用于毕设,经严格调试,运行有保障!【项目服务】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。 经导师精心指导并认可、获 98 分的毕业设计项目!【项目资源】:微信小程序。【项目说明】:聚焦计算机相关专业毕设及实战操练,可作课程设计与期末大作业,含全部源码,能直用于毕设,经严格调试,运行有保障!【项目服务】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。 经导师精心指导并认可、获 98 分的毕业设计项目!【项目资源】:微信小程序。【项目说明】:聚焦计算机相关专业毕设及实战操练,可作课程设计与期末大作业,含全部源码,能直用于毕设,经严格调试,运行有保障!【项目服务】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值