解决 Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException
导致这个异常的原因是springboot版本过高
Springfox 假设 Spring MVC 的路径匹配策略是 ant-path-matcher,而 Spring Boot 2.6.x版本的默认匹配策略是 path-pattern-matcher,这就造成了上面的报错。
解决方案
在 application.properties 配置文件中修改mvc的匹配策略:
spring.mvc.pathmatch.matching-strategy=ant-path-matcher