iis服务器助手广告广告
返回顶部
首页 > 资讯 > 后端开发 > JAVA >Failed to start bean ‘documentationPluginsBootstrapper‘; nested exception is java.lang.NullPointerEx
  • 593
分享到

Failed to start bean ‘documentationPluginsBootstrapper‘; nested exception is java.lang.NullPointerEx

javaspringbootspring 2023-08-20 10:08:08 593人浏览 安东尼
摘要

​ 一、报错问题 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文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作