Loading

[Solved] Swagger Startup Error: Failed to start bean ‘documentationPluginsBootstrapper‘

在SpringBoot配置Swagger时,出现报错

org.springframework.context.ApplicationContextException: Failed to start bean ‘documentationPluginsBootstrapper’; nested exception is java.lang.NullPointerException
```
原因时SpringBoot的版本和Swagger的版本不匹配。在2.6.2的 SpringBoot时,Springfox使用path matching base on AntPathMatcher,而SpringBoot使用 PathPatternMatcher。

解决方案
1.回退Spring版本
2.配置yaml配置文件
![](https://img2022.cnblogs.com/blog/2879849/202205/2879849-20220524111736679-930940480.png)
posted @ 2022-05-24 11:18  瑞莫蒂  阅读(64)  评论(0)    收藏  举报