踩坑笔记
Failed to start bean ‘documentationPluginsBootstrapper’
解决方法
在项目的yml配置文件中配置以下内容 (亲测有效)
spring:
mvc:
pathmatch:
matching-strategy: ant_path_matcher
问题产生原因
- 原因是在springboot 2.6.0中将SpringMVC 默认路径匹配策略从AntPathMatcher 更改为PathPatternParser,导致出错,解决办法是切换回原先的AntPathMatcher
其他解决方法
- 将spring boot版本调整,改为2.6.0版本以下
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.5.9</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>