[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://www.cnblogs.com/frankLiang442/p/16304865.html

浙公网安备 33010602011771号