项目起动时报错
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