- 1、springboot使用swaggerUI
- 2、SpringBoot访问doc.html页面404
springboot2.7.0版本
项目启动报错:
org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException
解决方法:
在配置文件(application.yml)的配置里,加上下面这个:
spring:
mvc:
path match:
matching-strategy: ant_path_matcher
2、SpringBoot访问doc.html页面404
springboot2.7.0版本,knife4j版本3.0.3
启动项目后,访问doc.html
解决方法:
在配置文件(application.yml)的配置里,加上下面这个:
spring:
mvc:
path match:
matching-strategy: ant_path_matcher



