错误截图:
错误原因:Springfox使用的路径匹配是基于AntPathMatcher的,而Spring Boot 2.6.X使用的是PathPatternMatcher
解决方案:
在配置文件application.yml里面添加以下内容:
即可解决!
qq5ec1c881b4a21 ©著作权
错误截图:
错误原因:Springfox使用的路径匹配是基于AntPathMatcher的,而Spring Boot 2.6.X使用的是PathPatternMatcher
解决方案:
在配置文件application.yml里面添加以下内容:
即可解决!
documentationPluginsBootstrapper
原因:springboot版本与swagger版本不匹配解决办法一:添加配置yml配置文件中添加:spring: mvc: pathmatch: matching-strategy: ant_path_matcher或application.properties配置文件添加:spring.mvc.pathmatch.matching-strategy=ant_path_matcher解决办法二:降低springboot版本 <
SpringBoot引入knife4j + Swagger报错。修改配置文件 application.yml。
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M