Failed to introspect Class druid问题解决

报错信息

java.lang.IllegalStateException: Failed to introspect Class [com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure] from ClassLoader [sun.misc.Launcher$AppClassLoader@14dad5dc]
	at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:507) ~[spring-core-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:404) ~[spring-core-5.1.6.RELEASE.jar:5.1.6.RELEASE]

报错原因:你的durid-spring-boot-starter中 自动配置类
com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure依赖的DataSourcePoolMetadataProvider 以及在spring-boot-autoconfigure项目spring 2.0以后删除掉了!
解决方案:将druid升级到1.1.10
参考链接

你可能感兴趣的:(学习笔记)