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   迷途行者  阅读(548)  评论(0编辑  收藏  举报

努力加载评论中...

导航

点击右上角即可分享
微信分享提示