0
点赞
收藏
分享

微信扫一扫

swagger 整合报错Failed to start bean ‘documentationPluginsBootstrapper’

大南瓜鸭 2022-03-17 阅读 227

1.启动报错

org.springframework.context.ApplicationContextException: 
Failed to start bean 'documentationPluginsBootstrapper';
nested exception is java.lang.NullPointerException

2.解决办法

#在application.yml配置文件中添加如下:
spring:
mvc:
pathmatch:
matching-strategy: ant_path_matcher

3.原因

        我使用的SpringBoot的版本是2.6.4,是因为SpringBoot中SpringMVC的默认策略从ANT_PATH_MATCHER 改成了PATH_PATTERN_PARSER所以就有错误了

举报

相关推荐

0 条评论