springboot 报错 Failed to start bean ‘documentationPluginsBootstrapper 之解决办法
作者:cndz
围观群众:622
更新于
标签:springbootbug解决
错误代码
Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException
错误原因
Springfox使用的路径匹配是基于AntPathMatcher的,而Spring Boot 2.6.X使用的是PathPatternMatcher
解决方案
1.properties
spring.mvc.pathmatch.matching-strategy=ANT_PATH_MATCHER
2.yaml
spring:
mvc:
pathmatch:
matching-strategy: ANT_PATH_MATCHER