完整报错信息:org.springframework.context.ApplicationContextException: Failed to start bean ‘documentationPluginsBootstrapper’;
原因:springboot2.6.3中将SpringMVC 默认路径匹配策略从AntPathMatcher 更改为PathPatternParser,导致出错
解决办法:切换回原先的AntPathMatcher,在pom依赖里加上:
spring:
mvc:
pathmatch:
matching-strategy: ant_path_matcher