SpringBoot3(3.0.6)与 springfox 3.0.0 不兼容。
错误描述
java.lang.TypeNotPresentException:
Type javax.servlet.http.HttpServletRequest not present
Caused by: java.lang.ClassNotFoundException:
javax.servlet.http.HttpServletRequest
Failed to start bean 'documentationPluginsBootstrapper'
解决方法
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>4.0.1</version>
<scope>provided</scope>
</dependency>
and application.properties
spring.mvc.pathmatch.matching-strategy=ANT_PATH_MATCHER