原因:1、SpringBoot版本太高导致集成Swagger2报错
2、因为Springfox使用的路径匹配是基于AntPathMatcher的,而Spring Boot 2.6.X使用的是PathPatternMatcher。
解决方案:1、我用的SpringBoot版本是2.6.1的,可以做版本降级处理,改成低版本的
2、在application.properties末尾添加spring.mvc.pathmatch.matching-strategy=ANT_PATH_MATCHER(yaml同理)
Failed to start bean ‘documentationPluginsBootstrapper‘; nested exception is java.lang.NullPointerEx
最新推荐文章于 2024-05-16 10:44:27 发布