获得徽章 0
- 在使用 springboot 2.6.7 时,出现 Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException 这样的错误,需要在yml文件里面加上
spring:
mvc:
pathmatch:
matching-strategy: ANT_PATH_MATCHER
这段代码,原因是因为使用的 swagger 版本冲突,我这里使用的是
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-spring-boot-starter</artifactId>
<version>3.0.3</version>
</dependency>展开赞过评论1
![[庆祝]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_123.da47506.png)
![[衰]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_34.cf5b4d5.png)
![[啤酒]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_139.ccb84eb.png)