【Knife4j】SpringBoot 2.7.x 整合 knife4j 3.x 报错 Failed to start bean ‘documentationPluginsBootstrapper
·
版本
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.2</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<dependencies>
<!--接口文档-->
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-spring-boot-starter</artifactId>
<version>3.0.3</version>
</dependency>
</dependencies>
启动报错
Failed to start bean ‘documentationPluginsBootstrapper‘; nested exception is java.lang.NullPoint
解决方法
yml配置修改: matching-strategy: ant_path_matcher
spring:
mvc:
pathmatch:
matching-strategy: ant_path_matcher
更多推荐
所有评论(0)