报错:
Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2023-06-09 11:20:32.782 ERROR 21988 — [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.context.ApplicationContextException: Failed to start bean ‘documentationPluginsBootstrapper’; nested exception is java.lang.NullPointerException
原因:springboot2.7.12与swagger2.9.2冲突
springboot2.7.12与swagger2.9.2冲突原因:Springfox 假设 Spring MVC 的路径匹配策略是 ant-path-matcher,而 Spring Boot 2.6.x版本的默认匹配策略是 path-pattern-matcher,这就造成了上面的报错。
解决办法: 在application.properties 下添加spring.mvc.pathmatch.matching-strategy=ant_path_matcher (yaml按yaml格式来一样)