一、报错问题 Failed to start bean ‘documentationPluginsBootstrapper’; nested exception is java.lang.NullPointerException 二、
Failed to start bean ‘documentationPluginsBootstrapper’; nested exception is java.lang.NullPointerException
Spring Boot 整合 swagger,用于生成 WEB api 文档。
版本信息:spring boot:2.7.6,swagger:2.8.0
SpringBoot 升级到 2.6.0之后,swagger版本和springboot出现了不兼容情况。如下:
方案一: 在启动类 或 配置类 添加注解
@EnableWebmvc
,下面以配置类添加为例:
方案二: 在 application.properties 配置文件添加配置:
properties spring.mvc.pathmatch.matching-strategy=ant_path_matcher
方案三: 降低Spring Boot 版本,比如可以考虑将Spring Boot版本降低为2.5.6。
来源地址:https://blog.csdn.net/Shipley_Leo/article/details/129100908
--结束END--
本文标题: Failed to start bean ‘documentationPluginsBootstrapper‘; nested exception is java.lang.NullPointerEx
本文链接: https://www.lsjlt.com/news/376358.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-04-01
2024-04-03
2024-04-03
2024-01-21
2024-01-21
2024-01-21
2024-01-21
2023-12-23
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0