Springfox 3.0.0 only works with Spring Boot <= 2.6.0-M2 but not with versions above it
Options for Spring Boot 2.6 M2 <
1. spring.mvc.pathmatch.matching-strategy=ANT_PATH_MATCHER #-> App.properties
– But without Actuator
2. @EnableWebMvc
3. Migrate to springdoc-openapi-ui
– same steps as io.springfox >= 3.X
io.springfox >= 2.X
|
io.springfox >= 3.X
|
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.9.2</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.9.2</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-schema</artifactId>
<version>2.9.2</version>
</dependency>
|
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-boot-starter</artifactId>
<version>3.0.0</version>
</dependency>
|
browser URL
http://localhost:8080/swagger-ui.html
|
browser URL
http://localhost:8080/swagger-ui/
http://localhost:8080/swagger-ui/index.html
|
Must Need
mvn clean
|
Must Need
mvn clean
|
@Configuration
@EnableSwagger2
|
@Configuration
@EnableSwagger2
|