【Knife4j】SpringBoot 2.7.x 整合 knife4j 3.x 报错 Failed to start bean ‘documentationPluginsBootstrapper

版本

<parent>
	   <groupId>org.springframework.bootgroupId>
	   <artifactId>spring-boot-starter-parentartifactId>
	   <version>2.7.2version>
	   <relativePath/> 
parent>

<dependencies>
	
	<dependency>
	    <groupId>com.github.xiaoymingroupId>
	    <artifactId>knife4j-spring-boot-starterartifactId>
	    <version>3.0.3version>
	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

你可能感兴趣的:(BUG,spring,boot,后端,java)