版本

<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
Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐