0
点赞
收藏
分享

微信扫一扫

documentationPluginsBootstrapper NullPointerException knife4j-spring-boot-starter

eelq 2022-01-04 阅读 48

部分pom

<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.6.2</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    
<dependency>
            <groupId>com.github.xiaoymin</groupId>
            <artifactId>knife4j-spring-boot-starter</artifactId>
            <!--在引用时请在maven中央仓库搜索最新版本号-->
            <version>2.0.7</version>
        </dependency>

把spring-boot-starter-parent的版本由2.5.8升级到2.6.2报标题的错误,具体原因未知。
解决方案1:回退版本到2.5.8
解决方案2:配置

spring.mvc.pathmatch.matching-strategy=ant_path_matcher

参考文章:
1
2

举报

相关推荐

0 条评论