documentationPluginsBootstrapper
SpringBoot2.6.x 整合swagger3.0 报错Failed to start bean 'documentationPluginsBootstrapper'
·
SpringBoot2.6.x 整合swagger3.0 报错Failed to start bean ‘documentationPluginsBootstrapper‘
原因问题:
这是因为Springfox使用的路径匹配是基于AntPathMatcher的,而Spring Boot 2.6.X使用的是PathPatternMatcher。
解决:在application.properties里配置:
spring.mvc.pathmatch.matching-strategy=ANT_PATH_MATCHER
在yml后缀文件添加或者修改内容:
mvc:
pathmatch:
matching-strategy: ant_path_matcher
更多推荐
已为社区贡献3条内容
所有评论(0)