(转)SpringFox swagger3 Failed to start bean 'documentationPluginsBootstrapper'

Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException: Cannot invoke "org.springframework.web.servlet.mvc.condition.PatternsRequestCondition.getPatterns()" because "this.condition" is null

SpringBoot升级与现有swagger3发生冲突,引发了这个bug

在配置文件里加一条

  spring.mvc.pathmatch.matching-strategy=ant_path_matcher

可解决

posted @ 2022-03-16 17:46  tt1234  阅读(384)  评论(0编辑  收藏  举报