spring cloud创建服务注册中心报错

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘bootstrapImportSelectorConfiguration’: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationPropertiesBean
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:601) ~[spring-beans-5.1.13.RELEASE.jar:5.1.13.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.13.RELEASE.jar:5.1.13.RELEASE]
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 : 320 )   [ s p r i n g − b e a n s − 5.1.13. R E L E A S E . j a r : 5.1.13. 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 . 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 : 222 )   [ s p r i n g − b e a n s − 5.1.13. R E L E A S E . j a r : 5.1.13. 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 . 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 : 318 )   [ s p r i n g − b e a n s − 5.1.13. R E L E A S E . j a r : 5.1.13. 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 . 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 : 199 )   [ s p r i n g − b e a n s − 5.1.13. R E L E A S E . j a r : 5.1.13. 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 . 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 L i s t a b l e B e a n F a c t o r y . p r e I n s t a n t i a t e S i n g l e t o n s ( D e f a u l t L i s t a b l e B e a n F a c t o r y . j a v a : 847 )   [ s p r i n g − b e a n s − 5.1.13. R E L E A S E . j a r : 5.1.13. 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 . 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 . f i n i s h B e a n F a c t o r y I n i t i a l i z a t i o n ( 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 : 877 )   [ s p r i n g − c o n t e x t − 5.1.13. R E L E A S E . j a r : 5.1.13. 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 . 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 : 549 )   [ s p r i n g − c o n t e x t − 5.1.13. R E L E A S E . j a r : 5.1.13. 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 . 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 : 744 ) [ s p r i n g − b o o t − 2.1.12. R E L E A S E . j a r : 2.1.12. 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 . 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 : 391 ) [ s p r i n g − b o o t − 2.1.12. R E L E A S E . j a r : 2.1.12. 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 . 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 : 312 ) [ s p r i n g − b o o t − 2.1.12. R E L E A S E . j a r : 2.1.12. 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 . 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 : 140 ) [ s p r i n g − b o o t − 2.1.12. R E L E A S E . j a r : 2.1.12. 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 . 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 : 206 ) [ s p r i n g − c l o u d − c o n t e x t − 2.2.0. R E L E A S E . j a r : 2.2.0. 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 : 117 ) [ s p r i n g − c l o u d − c o n t e x t − 2.2.0. R E L E A S E . j a r : 2.2.0. 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 : 74 ) [ s p r i n g − c l o u d − c o n t e x t − 2.2.0. R E L E A S E . j a r : 2.2.0. 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 : 172 ) [ s p r i n g − c o n t e x t − 5.1.13. R E L E A S E . j a r : 5.1.13. 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 . 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 : 165 ) [ s p r i n g − c o n t e x t − 5.1.13. R E L E A S E . j a r : 5.1.13. 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 . 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 : 139 ) [ s p r i n g − c o n t e x t − 5.1.13. R E L E A S E . j a r : 5.1.13. 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 . 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 : 127 ) [ s p r i n g − c o n t e x t − 5.1.13. R E L E A S E . j a r : 5.1.13. 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 . 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 : 76 ) [ s p r i n g − b o o t − 2.1.12. R E L E A S E . j a r : 2.1.12. 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 . 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 . e n v i r o n m e n t P r e p a r e d ( 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 . j a v a : 53 ) [ s p r i n g − b o o t − 2.1.12. R E L E A S E . j a r : 2.1.12. 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 . b o o t . S p r i n g A p p l i c a t i o n . p r e p a r e E n v i r o n m e n t ( S p r i n g A p p l i c a t i o n . j a v a : 342 ) [ s p r i n g − b o o t − 2.1.12. R E L E A S E . j a r : 2.1.12. 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 . 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 : 305 ) [ s p r i n g − b o o t − 2.1.12. R E L E A S E . j a r : 2.1.12. 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 . 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 : 1215 ) [ s p r i n g − b o o t − 2.1.12. R E L E A S E . j a r : 2.1.12. 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 . 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 : 1204 ) [ s p r i n g − b o o t − 2.1.12. R E L E A S E . j a r : 2.1.12. R E L E A S E ] a t c o m . m h . A p p l i c a t i o n . m a i n ( A p p l i c a t i o n . j a v a : 15 ) [ c l a s s e s / : n a ] C a u s e d b y : j a v a . l a n g . N o C l a s s D e f F o u n d E r r o r : 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 / p r o p e r t i e s / C o n f i g u r a t i o n P r o p e r t i e s B e a n 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 . c o n t e x t . p r o p e r t i e s . C o n f i g u r a t i o n P r o p e r t i e s B e a n s . p o s t P r o c e s s B e f o r e I n i t i a l i z a t i o n ( C o n f i g u r a t i o n P r o p e r t i e s B e a n s . j a v a : 94 )   [ s p r i n g − c l o u d − c o n t e x t − 2.2.0. R E L E A S E . j a r : 2.2.0. 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 . 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 A u t o w i r e C a p a b l e B e a n F a c t o r y . a p p l y B e a n P o s t P r o c e s s o r s B e f o r e I n i t i a l i z a t i o n ( A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . j a v a : 414 )   [ s p r i n g − b e a n s − 5.1.13. R E L E A S E . j a r : 5.1.13. 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 . 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 A u t o w i r e C a p a b l e B e a n F a c t o r y . i n i t i a l i z e B e a n ( A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . j a v a : 1763 )   [ s p r i n g − b e a n s − 5.1.13. R E L E A S E . j a r : 5.1.13. 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 . 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 A u t o w i r e C a p a b l e B e a n F a c t o r y . d o C r e a t e B e a n ( A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . j a v a : 593 )   [ s p r i n g − b e a n s − 5.1.13. R E L E A S E . j a r : 5.1.13. R E L E A S E ] . . . 26 c o m m o n f r a m e s o m i t t e d C a u s e d b y : j a v a . l a n g . C l a s s N o t F o u n d E x c e p t i o n : 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 . p r o p e r t i e s . C o n f i g u r a t i o n P r o p e r t i e s B e a n a t j a v a . n e t . U R L C l a s s L o a d e r . f i n d C l a s s ( U R L C l a s s L o a d e r . j a v a : 382 )   [ n a : 1.8. 0 2 31 ] a t j a v a . l a n g . C l a s s L o a d e r . l o a d C l a s s ( C l a s s L o a d e r . j a v a : 418 )   [ n a : 1.8. 0 2 31 ] a t s u n . m i s c . L a u n c h e r 0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.13.RELEASE.jar:5.1.13.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.13.RELEASE.jar:5.1.13.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.13.RELEASE.jar:5.1.13.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.13.RELEASE.jar:5.1.13.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:847) ~[spring-beans-5.1.13.RELEASE.jar:5.1.13.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877) ~[spring-context-5.1.13.RELEASE.jar:5.1.13.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) ~[spring-context-5.1.13.RELEASE.jar:5.1.13.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:744) [spring-boot-2.1.12.RELEASE.jar:2.1.12.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:391) [spring-boot-2.1.12.RELEASE.jar:2.1.12.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:312) [spring-boot-2.1.12.RELEASE.jar:2.1.12.RELEASE] at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:140) [spring-boot-2.1.12.RELEASE.jar:2.1.12.RELEASE] at org.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext(BootstrapApplicationListener.java:206) [spring-cloud-context-2.2.0.RELEASE.jar:2.2.0.RELEASE] at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:117) [spring-cloud-context-2.2.0.RELEASE.jar:2.2.0.RELEASE] at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:74) [spring-cloud-context-2.2.0.RELEASE.jar:2.2.0.RELEASE] at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) [spring-context-5.1.13.RELEASE.jar:5.1.13.RELEASE] at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) [spring-context-5.1.13.RELEASE.jar:5.1.13.RELEASE] at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) [spring-context-5.1.13.RELEASE.jar:5.1.13.RELEASE] at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127) [spring-context-5.1.13.RELEASE.jar:5.1.13.RELEASE] at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:76) [spring-boot-2.1.12.RELEASE.jar:2.1.12.RELEASE] at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:53) [spring-boot-2.1.12.RELEASE.jar:2.1.12.RELEASE] at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:342) [spring-boot-2.1.12.RELEASE.jar:2.1.12.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:305) [spring-boot-2.1.12.RELEASE.jar:2.1.12.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) [spring-boot-2.1.12.RELEASE.jar:2.1.12.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1204) [spring-boot-2.1.12.RELEASE.jar:2.1.12.RELEASE] at com.mh.Application.main(Application.java:15) [classes/:na] Caused by: java.lang.NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationPropertiesBean at org.springframework.cloud.context.properties.ConfigurationPropertiesBeans.postProcessBeforeInitialization(ConfigurationPropertiesBeans.java:94) ~[spring-cloud-context-2.2.0.RELEASE.jar:2.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:414) ~[spring-beans-5.1.13.RELEASE.jar:5.1.13.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1763) ~[spring-beans-5.1.13.RELEASE.jar:5.1.13.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593) ~[spring-beans-5.1.13.RELEASE.jar:5.1.13.RELEASE] ... 26 common frames omitted Caused by: java.lang.ClassNotFoundException: org.springframework.boot.context.properties.ConfigurationPropertiesBean at java.net.URLClassLoader.findClass(URLClassLoader.java:382) ~[na:1.8.0_231] at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[na:1.8.0_231] at sun.misc.Launcher 0(AbstractBeanFactory.java:320) [springbeans5.1.13.RELEASE.jar:5.1.13.RELEASE]atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [springbeans5.1.13.RELEASE.jar:5.1.13.RELEASE]atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) [springbeans5.1.13.RELEASE.jar:5.1.13.RELEASE]atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) [springbeans5.1.13.RELEASE.jar:5.1.13.RELEASE]atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:847) [springbeans5.1.13.RELEASE.jar:5.1.13.RELEASE]atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877) [springcontext5.1.13.RELEASE.jar:5.1.13.RELEASE]atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) [springcontext5.1.13.RELEASE.jar:5.1.13.RELEASE]atorg.springframework.boot.SpringApplication.refresh(SpringApplication.java:744)[springboot2.1.12.RELEASE.jar:2.1.12.RELEASE]atorg.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:391)[springboot2.1.12.RELEASE.jar:2.1.12.RELEASE]atorg.springframework.boot.SpringApplication.run(SpringApplication.java:312)[springboot2.1.12.RELEASE.jar:2.1.12.RELEASE]atorg.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:140)[springboot2.1.12.RELEASE.jar:2.1.12.RELEASE]atorg.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext(BootstrapApplicationListener.java:206)[springcloudcontext2.2.0.RELEASE.jar:2.2.0.RELEASE]atorg.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:117)[springcloudcontext2.2.0.RELEASE.jar:2.2.0.RELEASE]atorg.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:74)[springcloudcontext2.2.0.RELEASE.jar:2.2.0.RELEASE]atorg.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)[springcontext5.1.13.RELEASE.jar:5.1.13.RELEASE]atorg.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)[springcontext5.1.13.RELEASE.jar:5.1.13.RELEASE]atorg.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)[springcontext5.1.13.RELEASE.jar:5.1.13.RELEASE]atorg.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127)[springcontext5.1.13.RELEASE.jar:5.1.13.RELEASE]atorg.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:76)[springboot2.1.12.RELEASE.jar:2.1.12.RELEASE]atorg.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:53)[springboot2.1.12.RELEASE.jar:2.1.12.RELEASE]atorg.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:342)[springboot2.1.12.RELEASE.jar:2.1.12.RELEASE]atorg.springframework.boot.SpringApplication.run(SpringApplication.java:305)[springboot2.1.12.RELEASE.jar:2.1.12.RELEASE]atorg.springframework.boot.SpringApplication.run(SpringApplication.java:1215)[springboot2.1.12.RELEASE.jar:2.1.12.RELEASE]atorg.springframework.boot.SpringApplication.run(SpringApplication.java:1204)[springboot2.1.12.RELEASE.jar:2.1.12.RELEASE]atcom.mh.Application.main(Application.java:15)[classes/:na]Causedby:java.lang.NoClassDefFoundError:org/springframework/boot/context/properties/ConfigurationPropertiesBeanatorg.springframework.cloud.context.properties.ConfigurationPropertiesBeans.postProcessBeforeInitialization(ConfigurationPropertiesBeans.java:94) [springcloudcontext2.2.0.RELEASE.jar:2.2.0.RELEASE]atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:414) [springbeans5.1.13.RELEASE.jar:5.1.13.RELEASE]atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1763) [springbeans5.1.13.RELEASE.jar:5.1.13.RELEASE]atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593) [springbeans5.1.13.RELEASE.jar:5.1.13.RELEASE]...26commonframesomittedCausedby:java.lang.ClassNotFoundException:org.springframework.boot.context.properties.ConfigurationPropertiesBeanatjava.net.URLClassLoader.findClass(URLClassLoader.java:382) [na:1.8.0231]atjava.lang.ClassLoader.loadClass(ClassLoader.java:418) [na:1.8.0231]atsun.misc.LauncherAppClassLoader.loadClass(Launcher.java:355) ~[na:1.8.0_231]
at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[na:1.8.0_231]
… 30 common frames omitted

2020-02-24 19:28:01.957 ERROR 21540 — [ main] o.s.boot.SpringApplication : Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘bootstrapImportSelectorConfiguration’: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationPropertiesBean
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:601) ~[spring-beans-5.1.13.RELEASE.jar:5.1.13.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.13.RELEASE.jar:5.1.13.RELEASE]
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 : 320 )   [ s p r i n g − b e a n s − 5.1.13. R E L E A S E . j a r : 5.1.13. 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 . 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 : 222 )   [ s p r i n g − b e a n s − 5.1.13. R E L E A S E . j a r : 5.1.13. 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 . 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 : 318 )   [ s p r i n g − b e a n s − 5.1.13. R E L E A S E . j a r : 5.1.13. 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 . 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 : 199 )   [ s p r i n g − b e a n s − 5.1.13. R E L E A S E . j a r : 5.1.13. 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 . 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 L i s t a b l e B e a n F a c t o r y . p r e I n s t a n t i a t e S i n g l e t o n s ( D e f a u l t L i s t a b l e B e a n F a c t o r y . j a v a : 847 )   [ s p r i n g − b e a n s − 5.1.13. R E L E A S E . j a r : 5.1.13. 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 . 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 . f i n i s h B e a n F a c t o r y I n i t i a l i z a t i o n ( 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 : 877 )   [ s p r i n g − c o n t e x t − 5.1.13. R E L E A S E . j a r : 5.1.13. 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 . 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 : 549 )   [ s p r i n g − c o n t e x t − 5.1.13. R E L E A S E . j a r : 5.1.13. 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 . 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 : 744 ) [ s p r i n g − b o o t − 2.1.12. R E L E A S E . j a r : 2.1.12. 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 . 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 : 391 ) [ s p r i n g − b o o t − 2.1.12. R E L E A S E . j a r : 2.1.12. 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 . 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 : 312 ) [ s p r i n g − b o o t − 2.1.12. R E L E A S E . j a r : 2.1.12. 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 . 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 : 140 )   [ s p r i n g − b o o t − 2.1.12. R E L E A S E . j a r : 2.1.12. 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 . 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 : 206 )   [ s p r i n g − c l o u d − c o n t e x t − 2.2.0. R E L E A S E . j a r : 2.2.0. 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 : 117 )   [ s p r i n g − c l o u d − c o n t e x t − 2.2.0. R E L E A S E . j a r : 2.2.0. 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 : 74 )   [ s p r i n g − c l o u d − c o n t e x t − 2.2.0. R E L E A S E . j a r : 2.2.0. 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 : 172 )   [ s p r i n g − c o n t e x t − 5.1.13. R E L E A S E . j a r : 5.1.13. 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 . 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 : 165 )   [ s p r i n g − c o n t e x t − 5.1.13. R E L E A S E . j a r : 5.1.13. 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 . 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 : 139 )   [ s p r i n g − c o n t e x t − 5.1.13. R E L E A S E . j a r : 5.1.13. 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 . 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 : 127 )   [ s p r i n g − c o n t e x t − 5.1.13. R E L E A S E . j a r : 5.1.13. 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 . 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 : 76 )   [ s p r i n g − b o o t − 2.1.12. R E L E A S E . j a r : 2.1.12. 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 . 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 . e n v i r o n m e n t P r e p a r e d ( 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 . j a v a : 53 )   [ s p r i n g − b o o t − 2.1.12. R E L E A S E . j a r : 2.1.12. 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 . b o o t . S p r i n g A p p l i c a t i o n . p r e p a r e E n v i r o n m e n t ( S p r i n g A p p l i c a t i o n . j a v a : 342 ) [ s p r i n g − b o o t − 2.1.12. R E L E A S E . j a r : 2.1.12. 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 . 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 : 305 ) [ s p r i n g − b o o t − 2.1.12. R E L E A S E . j a r : 2.1.12. 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 . 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 : 1215 ) [ s p r i n g − b o o t − 2.1.12. R E L E A S E . j a r : 2.1.12. 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 . 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 : 1204 ) [ s p r i n g − b o o t − 2.1.12. R E L E A S E . j a r : 2.1.12. R E L E A S E ] a t c o m . m h . A p p l i c a t i o n . m a i n ( A p p l i c a t i o n . j a v a : 15 ) [ c l a s s e s / : n a ] C a u s e d b y : j a v a . l a n g . N o C l a s s D e f F o u n d E r r o r : 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 / p r o p e r t i e s / C o n f i g u r a t i o n P r o p e r t i e s B e a n 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 . c o n t e x t . p r o p e r t i e s . C o n f i g u r a t i o n P r o p e r t i e s B e a n s . p o s t P r o c e s s B e f o r e I n i t i a l i z a t i o n ( C o n f i g u r a t i o n P r o p e r t i e s B e a n s . j a v a : 94 )   [ s p r i n g − c l o u d − c o n t e x t − 2.2.0. R E L E A S E . j a r : 2.2.0. 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 . 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 A u t o w i r e C a p a b l e B e a n F a c t o r y . a p p l y B e a n P o s t P r o c e s s o r s B e f o r e I n i t i a l i z a t i o n ( A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . j a v a : 414 )   [ s p r i n g − b e a n s − 5.1.13. R E L E A S E . j a r : 5.1.13. 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 . 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 A u t o w i r e C a p a b l e B e a n F a c t o r y . i n i t i a l i z e B e a n ( A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . j a v a : 1763 )   [ s p r i n g − b e a n s − 5.1.13. R E L E A S E . j a r : 5.1.13. 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 . 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 A u t o w i r e C a p a b l e B e a n F a c t o r y . d o C r e a t e B e a n ( A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . j a v a : 593 )   [ s p r i n g − b e a n s − 5.1.13. R E L E A S E . j a r : 5.1.13. R E L E A S E ] . . . 26 c o m m o n f r a m e s o m i t t e d C a u s e d b y : j a v a . l a n g . C l a s s N o t F o u n d E x c e p t i o n : 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 . p r o p e r t i e s . C o n f i g u r a t i o n P r o p e r t i e s B e a n a t j a v a . n e t . U R L C l a s s L o a d e r . f i n d C l a s s ( U R L C l a s s L o a d e r . j a v a : 382 )   [ n a : 1.8. 0 2 31 ] a t j a v a . l a n g . C l a s s L o a d e r . l o a d C l a s s ( C l a s s L o a d e r . j a v a : 418 )   [ n a : 1.8. 0 2 31 ] a t s u n . m i s c . L a u n c h e r 0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.13.RELEASE.jar:5.1.13.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.13.RELEASE.jar:5.1.13.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.13.RELEASE.jar:5.1.13.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.13.RELEASE.jar:5.1.13.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:847) ~[spring-beans-5.1.13.RELEASE.jar:5.1.13.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877) ~[spring-context-5.1.13.RELEASE.jar:5.1.13.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) ~[spring-context-5.1.13.RELEASE.jar:5.1.13.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:744) [spring-boot-2.1.12.RELEASE.jar:2.1.12.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:391) [spring-boot-2.1.12.RELEASE.jar:2.1.12.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:312) [spring-boot-2.1.12.RELEASE.jar:2.1.12.RELEASE] at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:140) ~[spring-boot-2.1.12.RELEASE.jar:2.1.12.RELEASE] at org.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext(BootstrapApplicationListener.java:206) ~[spring-cloud-context-2.2.0.RELEASE.jar:2.2.0.RELEASE] at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:117) ~[spring-cloud-context-2.2.0.RELEASE.jar:2.2.0.RELEASE] at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:74) ~[spring-cloud-context-2.2.0.RELEASE.jar:2.2.0.RELEASE] at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) ~[spring-context-5.1.13.RELEASE.jar:5.1.13.RELEASE] at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) ~[spring-context-5.1.13.RELEASE.jar:5.1.13.RELEASE] at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) ~[spring-context-5.1.13.RELEASE.jar:5.1.13.RELEASE] at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127) ~[spring-context-5.1.13.RELEASE.jar:5.1.13.RELEASE] at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:76) ~[spring-boot-2.1.12.RELEASE.jar:2.1.12.RELEASE] at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:53) ~[spring-boot-2.1.12.RELEASE.jar:2.1.12.RELEASE] at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:342) [spring-boot-2.1.12.RELEASE.jar:2.1.12.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:305) [spring-boot-2.1.12.RELEASE.jar:2.1.12.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) [spring-boot-2.1.12.RELEASE.jar:2.1.12.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1204) [spring-boot-2.1.12.RELEASE.jar:2.1.12.RELEASE] at com.mh.Application.main(Application.java:15) [classes/:na] Caused by: java.lang.NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationPropertiesBean at org.springframework.cloud.context.properties.ConfigurationPropertiesBeans.postProcessBeforeInitialization(ConfigurationPropertiesBeans.java:94) ~[spring-cloud-context-2.2.0.RELEASE.jar:2.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:414) ~[spring-beans-5.1.13.RELEASE.jar:5.1.13.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1763) ~[spring-beans-5.1.13.RELEASE.jar:5.1.13.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593) ~[spring-beans-5.1.13.RELEASE.jar:5.1.13.RELEASE] ... 26 common frames omitted Caused by: java.lang.ClassNotFoundException: org.springframework.boot.context.properties.ConfigurationPropertiesBean at java.net.URLClassLoader.findClass(URLClassLoader.java:382) ~[na:1.8.0_231] at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[na:1.8.0_231] at sun.misc.Launcher 0(AbstractBeanFactory.java:320) [springbeans5.1.13.RELEASE.jar:5.1.13.RELEASE]atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [springbeans5.1.13.RELEASE.jar:5.1.13.RELEASE]atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) [springbeans5.1.13.RELEASE.jar:5.1.13.RELEASE]atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) [springbeans5.1.13.RELEASE.jar:5.1.13.RELEASE]atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:847) [springbeans5.1.13.RELEASE.jar:5.1.13.RELEASE]atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877) [springcontext5.1.13.RELEASE.jar:5.1.13.RELEASE]atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) [springcontext5.1.13.RELEASE.jar:5.1.13.RELEASE]atorg.springframework.boot.SpringApplication.refresh(SpringApplication.java:744)[springboot2.1.12.RELEASE.jar:2.1.12.RELEASE]atorg.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:391)[springboot2.1.12.RELEASE.jar:2.1.12.RELEASE]atorg.springframework.boot.SpringApplication.run(SpringApplication.java:312)[springboot2.1.12.RELEASE.jar:2.1.12.RELEASE]atorg.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:140) [springboot2.1.12.RELEASE.jar:2.1.12.RELEASE]atorg.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext(BootstrapApplicationListener.java:206) [springcloudcontext2.2.0.RELEASE.jar:2.2.0.RELEASE]atorg.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:117) [springcloudcontext2.2.0.RELEASE.jar:2.2.0.RELEASE]atorg.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:74) [springcloudcontext2.2.0.RELEASE.jar:2.2.0.RELEASE]atorg.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) [springcontext5.1.13.RELEASE.jar:5.1.13.RELEASE]atorg.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) [springcontext5.1.13.RELEASE.jar:5.1.13.RELEASE]atorg.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) [springcontext5.1.13.RELEASE.jar:5.1.13.RELEASE]atorg.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127) [springcontext5.1.13.RELEASE.jar:5.1.13.RELEASE]atorg.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:76) [springboot2.1.12.RELEASE.jar:2.1.12.RELEASE]atorg.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:53) [springboot2.1.12.RELEASE.jar:2.1.12.RELEASE]atorg.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:342)[springboot2.1.12.RELEASE.jar:2.1.12.RELEASE]atorg.springframework.boot.SpringApplication.run(SpringApplication.java:305)[springboot2.1.12.RELEASE.jar:2.1.12.RELEASE]atorg.springframework.boot.SpringApplication.run(SpringApplication.java:1215)[springboot2.1.12.RELEASE.jar:2.1.12.RELEASE]atorg.springframework.boot.SpringApplication.run(SpringApplication.java:1204)[springboot2.1.12.RELEASE.jar:2.1.12.RELEASE]atcom.mh.Application.main(Application.java:15)[classes/:na]Causedby:java.lang.NoClassDefFoundError:org/springframework/boot/context/properties/ConfigurationPropertiesBeanatorg.springframework.cloud.context.properties.ConfigurationPropertiesBeans.postProcessBeforeInitialization(ConfigurationPropertiesBeans.java:94) [springcloudcontext2.2.0.RELEASE.jar:2.2.0.RELEASE]atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:414) [springbeans5.1.13.RELEASE.jar:5.1.13.RELEASE]atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1763) [springbeans5.1.13.RELEASE.jar:5.1.13.RELEASE]atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593) [springbeans5.1.13.RELEASE.jar:5.1.13.RELEASE]...26commonframesomittedCausedby:java.lang.ClassNotFoundException:org.springframework.boot.context.properties.ConfigurationPropertiesBeanatjava.net.URLClassLoader.findClass(URLClassLoader.java:382) [na:1.8.0231]atjava.lang.ClassLoader.loadClass(ClassLoader.java:418) [na:1.8.0231]atsun.misc.LauncherAppClassLoader.loadClass(Launcher.java:355) ~[na:1.8.0_231]
at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[na:1.8.0_231]
… 30 common frames omitted

Disconnected from the target VM, address: ‘127.0.0.1:53205’, transport: ‘socket’

Process finished with exit code 1

依赖包版本问题

构建Spring Cloud的时候,spring boot的这个父级依赖的版本不能低于spring Cloud 的一些依赖。
刚开始用的

	<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.1.12.RELEASE</version>
        <relativePath/>
    </parent>

Eureka使用的是2.1.2所以一直报错,换成2.2.2以后就好了,或者降低eureka的版本。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值