问题
版本
<!-- swagger -->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.9.2</version>
</dependency>
<!-- web -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>2.6.5</version>
</dependency>
解决
在启动类配置文件application.yml
中配置策略
spring:
mvc:
pathmatch:
matching-strategy: ANT_PATH_MATCHER