1.启动报错
org.springframework.context.ApplicationContextException:
Failed to start bean 'documentationPluginsBootstrapper';
nested exception is java.lang.NullPointerException
2.解决办法
#在application.yml配置文件中添加如下:
spring:
mvc:
pathmatch:
matching-strategy: ant_path_matcher
3.原因
我使用的SpringBoot的版本是2.6.4,是因为SpringBoot中SpringMVC的默认策略从ANT_PATH_MATCHER 改成了PATH_PATTERN_PARSER所以就有错误了