解决IDEA报错Failed to start bean‘documentationPluginsBootstrapper‘问题
IDEA报错Failed to start bean‘documentationPluginsBootstrapper‘
在使用IDEA做项目时使用了Swagger进行接口文档的处理。
swagger 使用的版本为2.9.2,Springboot版本是2.6.2
问题
启动项目后发生了以下核心报错:
Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException
分析
网上各种解决方案皆为降低swagger版本或者降低Springboot版本,虽然有一定道理,但是实际上并不需要降低版本,发生这个问题的关键在于
Springboot高版本更改了以前的默认配置(此处由于本人水平有限,说的不够明确,但无需在意)
解决
在application.properties的配置文件中将其改为原来的方式即可
同时这个也能解决swagger弹窗问题
spring.mvc.pathmatch.matching-strategy=ant_path_matcher
IDEA常见报错及解决梳理
1:Error:Cannot determine path to ‘tools.jar’ library for 16 (/Library/Java/JavaVirtualMachines/jdk-16.0.2.jdk/Contents/Home)

找不到16版本的‘tools.jar’文件


总结
以上为个人经验,希望能给大家一个参考,也希望大家多多支持脚本之家。
- idea启动报错:Command line is too long问题
- 解决IDEA报错Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded
- idea中maven使用tomcat7插件运行run报错Could not start Tomcat问题
- 解决IDEA Maven下载依赖时报错ERROR - #org.jetbrains.idea.maven - Cannot reconnect.
- 如何解决idea安装插件后报错打不开问题
- 解决IDEA报错war exploded is not valid问题
相关文章
java实现fibonacci数列学习示例分享(斐波那契数列)
这篇文章主要介绍了fibonacci数列(斐波那契数列)示例,大家参考使用吧2014-01-01


最新评论