一、问题:

 二、原因:

springboot 版本过高,使swagger 异常,或者说是引入的swagger版本过高导致的问题,或者说是springboot2.6.0更新以后引起的问题。

三、解决:

在配置文件application.yml添加ant_path_matcher:

spring:
  mvc:
    pathmatch:
      matching-strategy: ant_path_matcher

如果是在properties文件:

spring.mvc.pathmatch.matching-strategy=ant-path-matcher

Logo

一站式 AI 云服务平台

更多推荐