使用springboot并且连接了数据库出现的问题

今天使用的idea工具并且使用springboot并且连接了数据库出现了一下问题
2019-05-18 12:53:54.827 ERROR 9700 — [ main] o.s.boot.SpringApplication : Application run failed

java.lang.IllegalStateException: Error processing condition on org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration.mbeanExporter
at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:64) ~[spring-boot-autoconfigure-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:108) ~[spring-context-5.0.8.RELEASE.jar:5.0.8.RELEASE]
at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForBeanMethod(ConfigurationClassBeanDefinitionReader.java:180) ~[spring-context-5.0.8.RELEASE.jar:5.0.8.RELEASE]
at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForConfigurationClass(ConfigurationClassBeanDefinitionReader.java:141) ~[spring-context-5.0.8.RELEASE.jar:5.0.8.RELEASE]
at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitions(ConfigurationClassBeanDefinitionReader.java:117) ~[spring-context-5.0.8.RELEASE.jar:5.0.8.RELEASE]
at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:328) ~[spring-context-5.0.8.RELEASE.jar:5.0.8.RELEASE]
at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:233) ~[spring-context-5.0.8.RELEASE.jar:5.0.8.RELEASE]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:271) ~[spring-context-5.0.8.RELEASE.jar:5.0.8.RELEASE]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:91) ~[spring-context-5.0.8.RELEASE.jar:5.0.8.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:694) ~[spring-context-5.0.8.RELEASE.jar:5.0.8.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532) ~[spring-context-5.0.8.RELEASE.jar:5.0.8.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) ~[spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:762) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:398) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:330) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1258) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1246) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at cn.itcast.BootDemoApplication.main(BootDemoApplication.java:11) [classes/:na]
Caused by: java.lang.IllegalStateException: Failed to introspect Class [com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure] from ClassLoader [sun.misc.Launcher A p p C l a s s L o a d e r @ 18 b 4 a a c 2 ] a t o r g . s p r i n g f r a m e w o r k . u t i l . R e f l e c t i o n U t i l s . g e t D e c l a r e d M e t h o d s ( R e f l e c t i o n U t i l s . j a v a : 659 )   [ s p r i n g − c o r e − 5.0.8. R E L E A S E . j a r : 5.0.8. 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 . u t i l . R e f l e c t i o n U t i l s . d o W i t h M e t h o d s ( R e f l e c t i o n U t i l s . j a v a : 556 )   [ s p r i n g − c o r e − 5.0.8. R E L E A S E . j a r : 5.0.8. 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 . u t i l . R e f l e c t i o n U t i l s . d o W i t h M e t h o d s ( R e f l e c t i o n U t i l s . j a v a : 541 )   [ s p r i n g − c o r e − 5.0.8. R E L E A S E . j a r : 5.0.8. 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 . u t i l . R e f l e c t i o n U t i l s . g e t U n i q u e D e c l a r e d M e t h o d s ( R e f l e c t i o n U t i l s . j a v a : 599 )   [ s p r i n g − c o r e − 5.0.8. R E L E A S E . j a r : 5.0.8. 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 . g e t T y p e F o r F a c t o r y M e t h o d ( 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 : 718 )   [ s p r i n g − b e a n s − 5.0.8. R E L E A S E . j a r : 5.0.8. 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 e t e r m i n e T a r g e t T y p e ( 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 : 659 )   [ s p r i n g − b e a n s − 5.0.8. R E L E A S E . j a r : 5.0.8. 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 . p r e d i c t B e a n T y p e ( 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 : 627 )   [ s p r i n g − b e a n s − 5.0.8. R E L E A S E . j a r : 5.0.8. 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 . i s F a c t o r y 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 : 1489 )   [ s p r i n g − b e a n s − 5.0.8. R E L E A S E . j a r : 5.0.8. 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 . i s F a c t o r y 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 : 1012 )   [ s p r i n g − b e a n s − 5.0.8. R E L E A S E . j a r : 5.0.8. 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 . a u t o c o n f i g u r e . c o n d i t i o n . B e a n T y p e R e g i s t r y . a d d B e a n T y p e F o r N o n A l i a s D e f i n i t i o n ( B e a n T y p e R e g i s t r y . j a v a : 180 )   [ s p r i n g − b o o t − a u t o c o n f i g u r e − 2.0.4. R E L E A S E . j a r : 2.0.4. 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 . a u t o c o n f i g u r e . c o n d i t i o n . B e a n T y p e R e g i s t r y . a d d B e a n T y p e F o r N o n A l i a s D e f i n i t i o n ( B e a n T y p e R e g i s t r y . j a v a : 160 )   [ s p r i n g − b o o t − a u t o c o n f i g u r e − 2.0.4. R E L E A S E . j a r : 2.0.4. 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 . a u t o c o n f i g u r e . c o n d i t i o n . B e a n T y p e R e g i s t r y . a d d B e a n T y p e ( B e a n T y p e R e g i s t r y . j a v a : 153 )   [ s p r i n g − b o o t − a u t o c o n f i g u r e − 2.0.4. R E L E A S E . j a r : 2.0.4. 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 . a u t o c o n f i g u r e . c o n d i t i o n . B e a n T y p e R e g i s t r y . u p d a t e T y p e s I f N e c e s s a r y ( B e a n T y p e R e g i s t r y . j a v a : 215 )   [ s p r i n g − b o o t − a u t o c o n f i g u r e − 2.0.4. R E L E A S E . j a r : 2.0.4. 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 . a u t o c o n f i g u r e . c o n d i t i o n . B e a n T y p e R e g i s t r y . g e t N a m e s F o r T y p e ( B e a n T y p e R e g i s t r y . j a v a : 115 )   [ s p r i n g − b o o t − a u t o c o n f i g u r e − 2.0.4. R E L E A S E . j a r : 2.0.4. 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 . a u t o c o n f i g u r e . c o n d i t i o n . O n B e a n C o n d i t i o n . c o l l e c t B e a n N a m e s F o r T y p e ( O n B e a n C o n d i t i o n . j a v a : 265 )   [ s p r i n g − b o o t − a u t o c o n f i g u r e − 2.0.4. R E L E A S E . j a r : 2.0.4. 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 . a u t o c o n f i g u r e . c o n d i t i o n . O n B e a n C o n d i t i o n . g e t B e a n N a m e s F o r T y p e ( O n B e a n C o n d i t i o n . j a v a : 254 )   [ s p r i n g − b o o t − a u t o c o n f i g u r e − 2.0.4. R E L E A S E . j a r : 2.0.4. 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 . a u t o c o n f i g u r e . c o n d i t i o n . O n B e a n C o n d i t i o n . g e t M a t c h i n g B e a n s ( O n B e a n C o n d i t i o n . j a v a : 196 )   [ s p r i n g − b o o t − a u t o c o n f i g u r e − 2.0.4. R E L E A S E . j a r : 2.0.4. 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 . a u t o c o n f i g u r e . c o n d i t i o n . O n B e a n C o n d i t i o n . g e t M a t c h O u t c o m e ( O n B e a n C o n d i t i o n . j a v a : 116 )   [ s p r i n g − b o o t − a u t o c o n f i g u r e − 2.0.4. R E L E A S E . j a r : 2.0.4. 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 . a u t o c o n f i g u r e . c o n d i t i o n . S p r i n g B o o t C o n d i t i o n . m a t c h e s ( S p r i n g B o o t C o n d i t i o n . j a v a : 47 )   [ s p r i n g − b o o t − a u t o c o n f i g u r e − 2.0.4. R E L E A S E . j a r : 2.0.4. R E L E A S E ] . . . 17 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 . 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 / a u t o c o n f i g u r e / j d b c / m e t a d a t a / D a t a S o u r c e P o o l M e t a d a t a P r o v i d e r a t j a v a . l a n g . C l a s s . g e t D e c l a r e d M e t h o d s 0 ( N a t i v e M e t h o d )   [ n a : 1.8. 0 1 81 ] a t j a v a . l a n g . C l a s s . p r i v a t e G e t D e c l a r e d M e t h o d s ( C l a s s . j a v a : 2701 )   [ n a : 1.8. 0 1 81 ] a t j a v a . l a n g . C l a s s . g e t D e c l a r e d M e t h o d s ( C l a s s . j a v a : 1975 )   [ n a : 1.8. 0 1 81 ] a t o r g . s p r i n g f r a m e w o r k . u t i l . R e f l e c t i o n U t i l s . g e t D e c l a r e d M e t h o d s ( R e f l e c t i o n U t i l s . j a v a : 641 )   [ s p r i n g − c o r e − 5.0.8. R E L E A S E . j a r : 5.0.8. R E L E A S E ] . . . 35 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 . a u t o c o n f i g u r e . j d b c . m e t a d a t a . D a t a S o u r c e P o o l M e t a d a t a P r o v i d e r 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 : 381 )   [ n a : 1.8. 0 1 81 ] 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 : 424 )   [ n a : 1.8. 0 1 81 ] a t s u n . m i s c . L a u n c h e r AppClassLoader@18b4aac2] at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:659) ~[spring-core-5.0.8.RELEASE.jar:5.0.8.RELEASE] at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:556) ~[spring-core-5.0.8.RELEASE.jar:5.0.8.RELEASE] at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:541) ~[spring-core-5.0.8.RELEASE.jar:5.0.8.RELEASE] at org.springframework.util.ReflectionUtils.getUniqueDeclaredMethods(ReflectionUtils.java:599) ~[spring-core-5.0.8.RELEASE.jar:5.0.8.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryMethod(AbstractAutowireCapableBeanFactory.java:718) ~[spring-beans-5.0.8.RELEASE.jar:5.0.8.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:659) ~[spring-beans-5.0.8.RELEASE.jar:5.0.8.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:627) ~[spring-beans-5.0.8.RELEASE.jar:5.0.8.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1489) ~[spring-beans-5.0.8.RELEASE.jar:5.0.8.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1012) ~[spring-beans-5.0.8.RELEASE.jar:5.0.8.RELEASE] at org.springframework.boot.autoconfigure.condition.BeanTypeRegistry.addBeanTypeForNonAliasDefinition(BeanTypeRegistry.java:180) ~[spring-boot-autoconfigure-2.0.4.RELEASE.jar:2.0.4.RELEASE] at org.springframework.boot.autoconfigure.condition.BeanTypeRegistry.addBeanTypeForNonAliasDefinition(BeanTypeRegistry.java:160) ~[spring-boot-autoconfigure-2.0.4.RELEASE.jar:2.0.4.RELEASE] at org.springframework.boot.autoconfigure.condition.BeanTypeRegistry.addBeanType(BeanTypeRegistry.java:153) ~[spring-boot-autoconfigure-2.0.4.RELEASE.jar:2.0.4.RELEASE] at org.springframework.boot.autoconfigure.condition.BeanTypeRegistry.updateTypesIfNecessary(BeanTypeRegistry.java:215) ~[spring-boot-autoconfigure-2.0.4.RELEASE.jar:2.0.4.RELEASE] at org.springframework.boot.autoconfigure.condition.BeanTypeRegistry.getNamesForType(BeanTypeRegistry.java:115) ~[spring-boot-autoconfigure-2.0.4.RELEASE.jar:2.0.4.RELEASE] at org.springframework.boot.autoconfigure.condition.OnBeanCondition.collectBeanNamesForType(OnBeanCondition.java:265) ~[spring-boot-autoconfigure-2.0.4.RELEASE.jar:2.0.4.RELEASE] at org.springframework.boot.autoconfigure.condition.OnBeanCondition.getBeanNamesForType(OnBeanCondition.java:254) ~[spring-boot-autoconfigure-2.0.4.RELEASE.jar:2.0.4.RELEASE] at org.springframework.boot.autoconfigure.condition.OnBeanCondition.getMatchingBeans(OnBeanCondition.java:196) ~[spring-boot-autoconfigure-2.0.4.RELEASE.jar:2.0.4.RELEASE] at org.springframework.boot.autoconfigure.condition.OnBeanCondition.getMatchOutcome(OnBeanCondition.java:116) ~[spring-boot-autoconfigure-2.0.4.RELEASE.jar:2.0.4.RELEASE] at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:47) ~[spring-boot-autoconfigure-2.0.4.RELEASE.jar:2.0.4.RELEASE] ... 17 common frames omitted Caused by: java.lang.NoClassDefFoundError: org/springframework/boot/autoconfigure/jdbc/metadata/DataSourcePoolMetadataProvider at java.lang.Class.getDeclaredMethods0(Native Method) ~[na:1.8.0_181] at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) ~[na:1.8.0_181] at java.lang.Class.getDeclaredMethods(Class.java:1975) ~[na:1.8.0_181] at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:641) ~[spring-core-5.0.8.RELEASE.jar:5.0.8.RELEASE] ... 35 common frames omitted Caused by: java.lang.ClassNotFoundException: org.springframework.boot.autoconfigure.jdbc.metadata.DataSourcePoolMetadataProvider at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_181] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_181] at sun.misc.Launcher AppClassLoader@18b4aac2]atorg.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:659) [springcore5.0.8.RELEASE.jar:5.0.8.RELEASE]atorg.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:556) [springcore5.0.8.RELEASE.jar:5.0.8.RELEASE]atorg.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:541) [springcore5.0.8.RELEASE.jar:5.0.8.RELEASE]atorg.springframework.util.ReflectionUtils.getUniqueDeclaredMethods(ReflectionUtils.java:599) [springcore5.0.8.RELEASE.jar:5.0.8.RELEASE]atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryMethod(AbstractAutowireCapableBeanFactory.java:718) [springbeans5.0.8.RELEASE.jar:5.0.8.RELEASE]atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:659) [springbeans5.0.8.RELEASE.jar:5.0.8.RELEASE]atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:627) [springbeans5.0.8.RELEASE.jar:5.0.8.RELEASE]atorg.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1489) [springbeans5.0.8.RELEASE.jar:5.0.8.RELEASE]atorg.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1012) [springbeans5.0.8.RELEASE.jar:5.0.8.RELEASE]atorg.springframework.boot.autoconfigure.condition.BeanTypeRegistry.addBeanTypeForNonAliasDefinition(BeanTypeRegistry.java:180) [springbootautoconfigure2.0.4.RELEASE.jar:2.0.4.RELEASE]atorg.springframework.boot.autoconfigure.condition.BeanTypeRegistry.addBeanTypeForNonAliasDefinition(BeanTypeRegistry.java:160) [springbootautoconfigure2.0.4.RELEASE.jar:2.0.4.RELEASE]atorg.springframework.boot.autoconfigure.condition.BeanTypeRegistry.addBeanType(BeanTypeRegistry.java:153) [springbootautoconfigure2.0.4.RELEASE.jar:2.0.4.RELEASE]atorg.springframework.boot.autoconfigure.condition.BeanTypeRegistry.updateTypesIfNecessary(BeanTypeRegistry.java:215) [springbootautoconfigure2.0.4.RELEASE.jar:2.0.4.RELEASE]atorg.springframework.boot.autoconfigure.condition.BeanTypeRegistry.getNamesForType(BeanTypeRegistry.java:115) [springbootautoconfigure2.0.4.RELEASE.jar:2.0.4.RELEASE]atorg.springframework.boot.autoconfigure.condition.OnBeanCondition.collectBeanNamesForType(OnBeanCondition.java:265) [springbootautoconfigure2.0.4.RELEASE.jar:2.0.4.RELEASE]atorg.springframework.boot.autoconfigure.condition.OnBeanCondition.getBeanNamesForType(OnBeanCondition.java:254) [springbootautoconfigure2.0.4.RELEASE.jar:2.0.4.RELEASE]atorg.springframework.boot.autoconfigure.condition.OnBeanCondition.getMatchingBeans(OnBeanCondition.java:196) [springbootautoconfigure2.0.4.RELEASE.jar:2.0.4.RELEASE]atorg.springframework.boot.autoconfigure.condition.OnBeanCondition.getMatchOutcome(OnBeanCondition.java:116) [springbootautoconfigure2.0.4.RELEASE.jar:2.0.4.RELEASE]atorg.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:47) [springbootautoconfigure2.0.4.RELEASE.jar:2.0.4.RELEASE]...17commonframesomittedCausedby:java.lang.NoClassDefFoundError:org/springframework/boot/autoconfigure/jdbc/metadata/DataSourcePoolMetadataProvideratjava.lang.Class.getDeclaredMethods0(NativeMethod) [na:1.8.0181]atjava.lang.Class.privateGetDeclaredMethods(Class.java:2701) [na:1.8.0181]atjava.lang.Class.getDeclaredMethods(Class.java:1975) [na:1.8.0181]atorg.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:641) [springcore5.0.8.RELEASE.jar:5.0.8.RELEASE]...35commonframesomittedCausedby:java.lang.ClassNotFoundException:org.springframework.boot.autoconfigure.jdbc.metadata.DataSourcePoolMetadataProvideratjava.net.URLClassLoader.findClass(URLClassLoader.java:381) [na:1.8.0181]atjava.lang.ClassLoader.loadClass(ClassLoader.java:424) [na:1.8.0181]atsun.misc.LauncherAppClassLoader.loadClass(Launcher.java:349) ~[na:1.8.0_181]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_181]
… 39 common frames omitted

2019-05-18 12:53:54.829 INFO 9700 — [ main] ConfigServletWebServerApplicationContext : Closing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@7ec7ffd3: startup date [Sat May 18 12:53:53 CST 2019]; root of context hierarchy
2019-05-18 12:53:54.831 WARN 9700 — [ main] o.s.boot.SpringApplication : Unable to close ApplicationContext

java.lang.IllegalStateException: Failed to introspect Class [com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure] from ClassLoader [sun.misc.Launcher A p p C l a s s L o a d e r @ 18 b 4 a a c 2 ] a t o r g . s p r i n g f r a m e w o r k . u t i l . R e f l e c t i o n U t i l s . g e t D e c l a r e d M e t h o d s ( R e f l e c t i o n U t i l s . j a v a : 659 )   [ s p r i n g − c o r e − 5.0.8. R E L E A S E . j a r : 5.0.8. 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 . u t i l . R e f l e c t i o n U t i l s . d o W i t h M e t h o d s ( R e f l e c t i o n U t i l s . j a v a : 556 )   [ s p r i n g − c o r e − 5.0.8. R E L E A S E . j a r : 5.0.8. 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 . u t i l . R e f l e c t i o n U t i l s . d o W i t h M e t h o d s ( R e f l e c t i o n U t i l s . j a v a : 541 )   [ s p r i n g − c o r e − 5.0.8. R E L E A S E . j a r : 5.0.8. 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 . u t i l . R e f l e c t i o n U t i l s . g e t U n i q u e D e c l a r e d M e t h o d s ( R e f l e c t i o n U t i l s . j a v a : 599 )   [ s p r i n g − c o r e − 5.0.8. R E L E A S E . j a r : 5.0.8. 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 . g e t T y p e F o r F a c t o r y M e t h o d ( 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 : 718 )   [ s p r i n g − b e a n s − 5.0.8. R E L E A S E . j a r : 5.0.8. 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 e t e r m i n e T a r g e t T y p e ( 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 : 659 )   [ s p r i n g − b e a n s − 5.0.8. R E L E A S E . j a r : 5.0.8. 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 . p r e d i c t B e a n T y p e ( 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 : 627 )   [ s p r i n g − b e a n s − 5.0.8. R E L E A S E . j a r : 5.0.8. 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 . i s F a c t o r y 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 : 1489 )   [ s p r i n g − b e a n s − 5.0.8. R E L E A S E . j a r : 5.0.8. 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 . d o G e t B e a n N a m e s F o r T y p e ( 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 : 419 )   [ s p r i n g − b e a n s − 5.0.8. R E L E A S E . j a r : 5.0.8. 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 . g e t B e a n N a m e s F o r T y p e ( 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 : 389 )   [ s p r i n g − b e a n s − 5.0.8. R E L E A S E . j a r : 5.0.8. 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 . g e t B e a n s O f T y p e ( 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 : 510 )   [ s p r i n g − b e a n s − 5.0.8. R E L E A S E . j a r : 5.0.8. 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 . g e t B e a n s O f T y p e ( 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 : 502 )   [ s p r i n g − b e a n s − 5.0.8. R E L E A S E . j a r : 5.0.8. 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 . g e t B e a n s O f T y p e ( 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 : 1198 )   [ s p r i n g − c o n t e x t − 5.0.8. R E L E A S E . j a r : 5.0.8. 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 . g e t E x i t C o d e F r o m M a p p e d E x c e p t i o n ( S p r i n g A p p l i c a t i o n . j a v a : 892 ) [ s p r i n g − b o o t − 2.0.4. R E L E A S E . j a r : 2.0.4. 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 . g e t E x i t C o d e F r o m E x c e p t i o n ( S p r i n g A p p l i c a t i o n . j a v a : 878 ) [ s p r i n g − b o o t − 2.0.4. R E L E A S E . j a r : 2.0.4. 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 . h a n d l e E x i t C o d e ( S p r i n g A p p l i c a t i o n . j a v a : 864 ) [ s p r i n g − b o o t − 2.0.4. R E L E A S E . j a r : 2.0.4. 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 . h a n d l e R u n F a i l u r e ( S p r i n g A p p l i c a t i o n . j a v a : 813 ) [ s p r i n g − b o o t − 2.0.4. R E L E A S E . j a r : 2.0.4. 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 : 341 ) [ s p r i n g − b o o t − 2.0.4. R E L E A S E . j a r : 2.0.4. 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 : 1258 ) [ s p r i n g − b o o t − 2.0.4. R E L E A S E . j a r : 2.0.4. 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 : 1246 ) [ s p r i n g − b o o t − 2.0.4. R E L E A S E . j a r : 2.0.4. R E L E A S E ] a t c n . i t c a s t . B o o t D e m o A p p l i c a t i o n . m a i n ( B o o t D e m o A p p l i c a t i o n . j a v a : 11 ) [ 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 / a u t o c o n f i g u r e / j d b c / m e t a d a t a / D a t a S o u r c e P o o l M e t a d a t a P r o v i d e r a t j a v a . l a n g . C l a s s . g e t D e c l a r e d M e t h o d s 0 ( N a t i v e M e t h o d )   [ n a : 1.8. 0 1 81 ] a t j a v a . l a n g . C l a s s . p r i v a t e G e t D e c l a r e d M e t h o d s ( C l a s s . j a v a : 2701 )   [ n a : 1.8. 0 1 81 ] a t j a v a . l a n g . C l a s s . g e t D e c l a r e d M e t h o d s ( C l a s s . j a v a : 1975 )   [ n a : 1.8. 0 1 81 ] a t o r g . s p r i n g f r a m e w o r k . u t i l . R e f l e c t i o n U t i l s . g e t D e c l a r e d M e t h o d s ( R e f l e c t i o n U t i l s . j a v a : 641 )   [ s p r i n g − c o r e − 5.0.8. R E L E A S E . j a r : 5.0.8. R E L E A S E ] . . . 20 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 . a u t o c o n f i g u r e . j d b c . m e t a d a t a . D a t a S o u r c e P o o l M e t a d a t a P r o v i d e r 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 : 381 )   [ n a : 1.8. 0 1 81 ] 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 : 424 )   [ n a : 1.8. 0 1 81 ] a t s u n . m i s c . L a u n c h e r AppClassLoader@18b4aac2] at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:659) ~[spring-core-5.0.8.RELEASE.jar:5.0.8.RELEASE] at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:556) ~[spring-core-5.0.8.RELEASE.jar:5.0.8.RELEASE] at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:541) ~[spring-core-5.0.8.RELEASE.jar:5.0.8.RELEASE] at org.springframework.util.ReflectionUtils.getUniqueDeclaredMethods(ReflectionUtils.java:599) ~[spring-core-5.0.8.RELEASE.jar:5.0.8.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryMethod(AbstractAutowireCapableBeanFactory.java:718) ~[spring-beans-5.0.8.RELEASE.jar:5.0.8.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:659) ~[spring-beans-5.0.8.RELEASE.jar:5.0.8.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:627) ~[spring-beans-5.0.8.RELEASE.jar:5.0.8.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1489) ~[spring-beans-5.0.8.RELEASE.jar:5.0.8.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:419) ~[spring-beans-5.0.8.RELEASE.jar:5.0.8.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:389) ~[spring-beans-5.0.8.RELEASE.jar:5.0.8.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:510) ~[spring-beans-5.0.8.RELEASE.jar:5.0.8.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:502) ~[spring-beans-5.0.8.RELEASE.jar:5.0.8.RELEASE] at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1198) ~[spring-context-5.0.8.RELEASE.jar:5.0.8.RELEASE] at org.springframework.boot.SpringApplication.getExitCodeFromMappedException(SpringApplication.java:892) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE] at org.springframework.boot.SpringApplication.getExitCodeFromException(SpringApplication.java:878) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE] at org.springframework.boot.SpringApplication.handleExitCode(SpringApplication.java:864) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE] at org.springframework.boot.SpringApplication.handleRunFailure(SpringApplication.java:813) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:341) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1258) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1246) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE] at cn.itcast.BootDemoApplication.main(BootDemoApplication.java:11) [classes/:na] Caused by: java.lang.NoClassDefFoundError: org/springframework/boot/autoconfigure/jdbc/metadata/DataSourcePoolMetadataProvider at java.lang.Class.getDeclaredMethods0(Native Method) ~[na:1.8.0_181] at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) ~[na:1.8.0_181] at java.lang.Class.getDeclaredMethods(Class.java:1975) ~[na:1.8.0_181] at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:641) ~[spring-core-5.0.8.RELEASE.jar:5.0.8.RELEASE] ... 20 common frames omitted Caused by: java.lang.ClassNotFoundException: org.springframework.boot.autoconfigure.jdbc.metadata.DataSourcePoolMetadataProvider at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_181] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_181] at sun.misc.Launcher AppClassLoader@18b4aac2]atorg.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:659) [springcore5.0.8.RELEASE.jar:5.0.8.RELEASE]atorg.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:556) [springcore5.0.8.RELEASE.jar:5.0.8.RELEASE]atorg.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:541) [springcore5.0.8.RELEASE.jar:5.0.8.RELEASE]atorg.springframework.util.ReflectionUtils.getUniqueDeclaredMethods(ReflectionUtils.java:599) [springcore5.0.8.RELEASE.jar:5.0.8.RELEASE]atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryMethod(AbstractAutowireCapableBeanFactory.java:718) [springbeans5.0.8.RELEASE.jar:5.0.8.RELEASE]atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:659) [springbeans5.0.8.RELEASE.jar:5.0.8.RELEASE]atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:627) [springbeans5.0.8.RELEASE.jar:5.0.8.RELEASE]atorg.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1489) [springbeans5.0.8.RELEASE.jar:5.0.8.RELEASE]atorg.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:419) [springbeans5.0.8.RELEASE.jar:5.0.8.RELEASE]atorg.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:389) [springbeans5.0.8.RELEASE.jar:5.0.8.RELEASE]atorg.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:510) [springbeans5.0.8.RELEASE.jar:5.0.8.RELEASE]atorg.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:502) [springbeans5.0.8.RELEASE.jar:5.0.8.RELEASE]atorg.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1198) [springcontext5.0.8.RELEASE.jar:5.0.8.RELEASE]atorg.springframework.boot.SpringApplication.getExitCodeFromMappedException(SpringApplication.java:892)[springboot2.0.4.RELEASE.jar:2.0.4.RELEASE]atorg.springframework.boot.SpringApplication.getExitCodeFromException(SpringApplication.java:878)[springboot2.0.4.RELEASE.jar:2.0.4.RELEASE]atorg.springframework.boot.SpringApplication.handleExitCode(SpringApplication.java:864)[springboot2.0.4.RELEASE.jar:2.0.4.RELEASE]atorg.springframework.boot.SpringApplication.handleRunFailure(SpringApplication.java:813)[springboot2.0.4.RELEASE.jar:2.0.4.RELEASE]atorg.springframework.boot.SpringApplication.run(SpringApplication.java:341)[springboot2.0.4.RELEASE.jar:2.0.4.RELEASE]atorg.springframework.boot.SpringApplication.run(SpringApplication.java:1258)[springboot2.0.4.RELEASE.jar:2.0.4.RELEASE]atorg.springframework.boot.SpringApplication.run(SpringApplication.java:1246)[springboot2.0.4.RELEASE.jar:2.0.4.RELEASE]atcn.itcast.BootDemoApplication.main(BootDemoApplication.java:11)[classes/:na]Causedby:java.lang.NoClassDefFoundError:org/springframework/boot/autoconfigure/jdbc/metadata/DataSourcePoolMetadataProvideratjava.lang.Class.getDeclaredMethods0(NativeMethod) [na:1.8.0181]atjava.lang.Class.privateGetDeclaredMethods(Class.java:2701) [na:1.8.0181]atjava.lang.Class.getDeclaredMethods(Class.java:1975) [na:1.8.0181]atorg.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:641) [springcore5.0.8.RELEASE.jar:5.0.8.RELEASE]...20commonframesomittedCausedby:java.lang.ClassNotFoundException:org.springframework.boot.autoconfigure.jdbc.metadata.DataSourcePoolMetadataProvideratjava.net.URLClassLoader.findClass(URLClassLoader.java:381) [na:1.8.0181]atjava.lang.ClassLoader.loadClass(ClassLoader.java:424) [na:1.8.0181]atsun.misc.LauncherAppClassLoader.loadClass(Launcher.java:349) ~[na:1.8.0_181]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_181]
… 24 common frames omitted

Process finished with exit code 1
结果问题的原因是: 使用 druid 连接数据库结果依赖的版本比较低,以下是我使用的依赖
在这里插入图片描述
解决方法就是换一个版本比较高的依赖喽 以下是我换的依赖
在这里插入图片描述
就能成功运行了!!!!!
亲测有效!!!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值