Springboot集成Swagger2错误
由于版本问题会出现下面的错误,主要是加载documentationPluginsBootstrapper
出现空指针的情况
org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException
解决方式
-
更换 Springboot版本 建议 2.5 以下
-
更换 SpringMVC的 路径查询格式
mvc: pathmatch: matching-strategy: ant_path_matcher