SpringFox3 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

解决方法:

在spring的配置文件中添加下面的内容。

application.properties配置文件中加

spring.mvc.pathmatch.matching-strategy=ant_path_matcher

application.yal配置文件中加

spring:
    mvc:
        pathmatch.matching-strategy:ant_path_matcher

 

posted on 2022-02-03 00:00  迷途行者  阅读(546)  评论(0编辑  收藏  举报

导航