Swagger之Failed to start bean ‘documentationPluginsBootstrapper‘; nested exception is java.lang
说运行项目时报错documentationPluginsBootstrapper的问题
可以先看一下项目的版本是不是太高 可以降低一下版本 我自己从4.0.0改成2.5.7
最开始我这边的 以为是我这边的swagger的版本太高 然后降低了版本 后面发现和这个问题关系不大
然后我用的swagger还是3.0.0版本的
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>3.0.0</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>3.0.0</version>
</dependency>
最后看到其他的文章讲也可以在配置文件添加:
spring:
mvc:
pathmatch:
matching-strategy: ANT_PATH_MATCHER
这个也是可以行的 最后我这边 项目就可以启动成功