dyc87112 / SpringBoot-Learning

《Spring Boot基础教程》,2.x版本持续连载中!点击下方链接直达教程目录!
https://blog.didispace.com/spring-boot-learning-2x/
15.7k stars 4.88k forks source link

chapter3-3配置druid监控的问题 #76

Open lc550845723 opened 2 years ago

lc550845723 commented 2 years ago

"第一步:在pom.xml中引入spring-boot-starter-actuator模块"关于这一步的问题

我使用的springboot版本是2.6.3,引入的swagger2启动报错:Failed to start bean ‘documentationPluginsBootstrapper’; nested exception is java.lang.NullPointerException,然后增加配置spring.mvc.pathmatch.matching-strategy=ant_path_matche解决上述启动报错的问题。

但是引入spring-boot-starter-actuator依赖,启动项目又出现上述问题。 好几天了,没找到怎么解决,( ̄﹏ ̄;)