The springboot integration swagger2 reported an error. The attempt to reduce the springboot version is invalid
Solution: Configuration in application.properties:
spring.mvc.pathmatch.matching-strategy=ant_path_matcher
Because the path matching used by Springfox is based on AntPathMatcher, while Spring Boot 2.6.X uses PathPatternMatcher.