在添加书写的Swagger配置类后,Springboot的启动器启动失败时
给出如下错误
org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException
Caused by: java.lang.NullPointerException: null
这是因为Springboot版本与Swagger版本不兼容的问题,我们需要在application.properties中添加
spring.mvc.pathmatch.matching-strategy=ant_path_matcher 即可启动成功,可以成功访问