在学习spring-boot时学到了整合swagger来编写API文档的方法,但在配置后出现了报错
Failed to start bean ‘documentationPluginsBootstrapper’;在百度后解决。
问题原因
当前的spring-boot版本过高导致的不兼容
解决方法一(推荐)
在application.properties中添加
spring.mvc.pathmatch.matching-strategy: ant_path_matcher
如果是yaml文件,请添加
spring:
mvc:
pathmatch:
matching-strategy: ant_path_matcher
解决方法二(未测试)
在pom中更改spring-boot版本,低于2.6.x