springboot集成swagger3出现如下错误:Failed to start bean ‘documentationPluginsBootstrapper‘; nested exception
使用的spring-boot版本2.6.1
swagger2和swagger-ui都是2.9.2
在application.properties里配置里添加:
spring.mvc.pathmatch.matching-strategy=ANT_PATH_MATCHER
原因: 这是因为Springfox使用的路径匹配是基于AntPathMatcher的,而Spring Boot 2.6.X使用的是PathPatternMatcher。
参考:https://blog.csdn.net/shl1285067785/article/details/121933879
版权声明:本文为q1301966496原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。