您当前的位置: 首页 >  Java

Failed to start bean ‘documentationPluginsBootstrapper‘; nested exception is java.lang.NullPointerEx

梁云亮 发布时间:2020-05-04 18:56:56 ,浏览量:2

错误

SpringBoot2.6.1在整合Swagger3时报错:

在这里插入图片描述

解决方案

之所以报错是因为Springfox使用的路径匹配是基于AntPathMatcher的,而Spring Boot 2.6.X使用的是PathPatternMatcher。 解决方案,修改application.yaml :

spring:
  mvc:
    pathmatch:
      matching-strategy: ant_path_matcher

在这里插入图片描述

关注
打赏
1688896170
查看更多评论

梁云亮

暂无认证

  • 2浏览

    0关注

    1121博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录

0.0505s