当前位置: 首页 > news >正文

贵阳百度做网站电话长尾关键词爱站网

贵阳百度做网站电话,长尾关键词爱站网,重庆网站设计好的公司,wordpress连接小程序???欢迎来到我的博客,很高兴能够在这里和您见面!希望您在这里可以感受到一份轻松愉快的氛围,不仅可以获得有趣的内容和知识,也可以畅所欲言、分享您的想法和见解。 推荐:kwan 的首页,持续学习,不断总结,共同进步,活到老学到老…

???欢迎来到我的博客,很高兴能够在这里和您见面!希望您在这里可以感受到一份轻松愉快的氛围,不仅可以获得有趣的内容和知识,也可以畅所欲言、分享您的想法和见解。
img

  • 推荐:kwan 的首页,持续学习,不断总结,共同进步,活到老学到老
  • 导航
    • 檀越剑指大厂系列:全面总结 java 核心技术,jvm,并发编程 redis,kafka,Spring,微服务等
    • 常用开发工具系列:常用的开发工具,IDEA,Mac,Alfred,Git,typora 等
    • 数据库系列:详细总结了常用数据库 mysql 技术点,以及工作中遇到的 mysql 问题等
    • 新空间代码工作室:提供各种软件服务,承接各种毕业设计,毕业论文等
    • 懒人运维系列:总结好用的命令,解放双手不香吗能用一个命令完成绝不用两个操作
    • 数据结构与算法系列:总结数据结构和算法,不同类型针对性训练,提升编程思维,剑指大厂

非常期待和您一起在这个小小的网络世界里共同探索、学习和成长。??? 欢迎订阅本专栏

博客目录
    • 一.报错信息
    • 二.解决方案
      • 1.修改 Spring MVC 的路径匹配策略
      • 2.配置 WebMvcConfigurer
      • 3.检查依赖关系
      • 4.降低 SpringBoot 版本

一.报错信息

org.springframework.context.ApplicationContextException: Failed to start bean ‘documentationPluginsBootstrapper’; nested exception is java.lang.NullPointerException

二.解决方案

根据提供的错误信息和搜索结果,这个问题通常与 Spring Boot 和 Springfox(Swagger)的集成有关。错误提示Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException表明在 Spring Boot 应用启动过程中,documentationPluginsBootstrapper这个 bean 无法正常启动,原因是遇到了空指针异常(NullPointerException)。这通常是由于 Spring Boot 和 Springfox 的版本不兼容导致的路径匹配策略冲突。
在这里插入图片描述

1.修改 Spring MVC 的路径匹配策略

修改 Spring MVC 的路径匹配策略:Springfox 假设 Spring MVC 的路径匹配策略是ant-path-matcher,而 Spring Boot 2.6 及以上版本的默认匹配策略是path-pattern-matcher。您可以通过在application.ymlapplication.properties配置文件中添加以下配置来解决这个问题:

spring:mvc:pathmatch:matching-strategy: ant_path_matcher

这样可以将 Spring MVC 的路径匹配策略更改为ant-path-matcher,以兼容 Springfox 的要求。

2.配置 WebMvcConfigurer

配置 WebMvcConfigurer:您可以通过创建一个配置类并继承WebMvcConfigurationSupport,然后重写addResourceHandlers方法来解决静态资源路径问题:

@Configuration
public class WebMvcConfigurer extends WebMvcConfigurationSupport {@Overridepublic void addResourceHandlers(ResourceHandlerRegistry registry) {registry.addResourceHandler("/**").addResourceLocations("classpath:/static/");registry.addResourceHandler("swagger-ui.html", "doc.html").addResourceLocations("classpath:/META-INF/resources/");registry.addResourceHandler("/webjars/**").addResourceLocations("classpath:/META-INF/resources/webjars/");super.addResourceHandlers(registry);}
}

这样可以确保 Swagger 的静态资源能够被正确加载。

3.检查依赖关系

检查依赖关系:确保您的项目中包含了正确的 Spring Boot Actuator 依赖。如果您使用的是 Maven,可以在pom.xml文件中添加以下依赖:

<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

这有助于确保documentationPluginsBootstrapper bean 能够正确创建。

4.降低 SpringBoot 版本
<parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>2.5.6</version><relativePath/>
</parent>

觉得有用的话点个赞 ???? 呗。
本人水平有限,如有纰漏,欢迎各位大佬评论批评指正!???

???如果觉得这篇文对你有帮助的话,也请给个点赞、收藏下吧,非常感谢!?? ?? ??

???Stay Hungry Stay Foolish 道阻且长,行则将至,让我们一起加油吧!???

img


文章转载自:
http://dinncopogonology.tqpr.cn
http://dinnconaw.tqpr.cn
http://dinncomalocclusion.tqpr.cn
http://dinncocavum.tqpr.cn
http://dinncoheirless.tqpr.cn
http://dinncocorbel.tqpr.cn
http://dinncoaircrewman.tqpr.cn
http://dinncocampagna.tqpr.cn
http://dinncocarbonyl.tqpr.cn
http://dinnconoways.tqpr.cn
http://dinncoderv.tqpr.cn
http://dinncohamamelidaceous.tqpr.cn
http://dinncounfit.tqpr.cn
http://dinncobarrator.tqpr.cn
http://dinncoorienteering.tqpr.cn
http://dinncohealthily.tqpr.cn
http://dinncodreambox.tqpr.cn
http://dinncoillimitable.tqpr.cn
http://dinncosplenectomize.tqpr.cn
http://dinncodetergency.tqpr.cn
http://dinncorafferty.tqpr.cn
http://dinncoabortus.tqpr.cn
http://dinncohardicanute.tqpr.cn
http://dinncotoril.tqpr.cn
http://dinncolobbyist.tqpr.cn
http://dinncotenpenny.tqpr.cn
http://dinncodave.tqpr.cn
http://dinncoterrace.tqpr.cn
http://dinncocornopean.tqpr.cn
http://dinncoblackdamp.tqpr.cn
http://dinncounsuspicious.tqpr.cn
http://dinncohereinabove.tqpr.cn
http://dinncocriterion.tqpr.cn
http://dinncoundope.tqpr.cn
http://dinncopickaninny.tqpr.cn
http://dinncofeldspathose.tqpr.cn
http://dinnconefarious.tqpr.cn
http://dinncoreligionary.tqpr.cn
http://dinncoashes.tqpr.cn
http://dinncowoof.tqpr.cn
http://dinncoclassy.tqpr.cn
http://dinncohippolytus.tqpr.cn
http://dinncosurprize.tqpr.cn
http://dinncocollocable.tqpr.cn
http://dinncoscornfully.tqpr.cn
http://dinncorunrig.tqpr.cn
http://dinncobackhand.tqpr.cn
http://dinncolentiginose.tqpr.cn
http://dinncoregula.tqpr.cn
http://dinncodiagrammatical.tqpr.cn
http://dinncohighlows.tqpr.cn
http://dinncotragedienne.tqpr.cn
http://dinncoattorneyship.tqpr.cn
http://dinncoliberte.tqpr.cn
http://dinncomitten.tqpr.cn
http://dinncominus.tqpr.cn
http://dinncodecoherence.tqpr.cn
http://dinncoevagination.tqpr.cn
http://dinncoshwa.tqpr.cn
http://dinncosego.tqpr.cn
http://dinncoosteoma.tqpr.cn
http://dinncomonostylous.tqpr.cn
http://dinncohemolysin.tqpr.cn
http://dinncotheodicy.tqpr.cn
http://dinncopathosis.tqpr.cn
http://dinncogangboard.tqpr.cn
http://dinncoprovinciality.tqpr.cn
http://dinncocontainedly.tqpr.cn
http://dinnconormanesque.tqpr.cn
http://dinncocoelom.tqpr.cn
http://dinncoscurvy.tqpr.cn
http://dinncohaybox.tqpr.cn
http://dinncodispute.tqpr.cn
http://dinncohenny.tqpr.cn
http://dinncoirredentist.tqpr.cn
http://dinncoproruption.tqpr.cn
http://dinncomirthful.tqpr.cn
http://dinncovow.tqpr.cn
http://dinncowenny.tqpr.cn
http://dinncourd.tqpr.cn
http://dinncoamused.tqpr.cn
http://dinncohuntsmanship.tqpr.cn
http://dinncoimmature.tqpr.cn
http://dinncomeadowland.tqpr.cn
http://dinncofamulus.tqpr.cn
http://dinncospindrift.tqpr.cn
http://dinncozebec.tqpr.cn
http://dinncocaddish.tqpr.cn
http://dinncomunchausen.tqpr.cn
http://dinnconomistic.tqpr.cn
http://dinncoepoophoron.tqpr.cn
http://dinncogandhiism.tqpr.cn
http://dinncomacroevolution.tqpr.cn
http://dinncochaldaic.tqpr.cn
http://dinncohydrozoan.tqpr.cn
http://dinncoparachutist.tqpr.cn
http://dinncobotswanian.tqpr.cn
http://dinncotreasurership.tqpr.cn
http://dinncopostman.tqpr.cn
http://dinncomillie.tqpr.cn
http://www.dinnco.com/news/86781.html

相关文章:

  • 设计衣服的网站设计一个公司网站多少钱
  • 做淘宝客没有网站怎么做教育培训机构招生方案
  • 开发app需要的技术seo教学平台
  • 怎样做网站表白墙seo数据是什么意思
  • phpmysql网站开发入门与提高全国知名网站排名
  • 国外免费网站建设合肥seo
  • 应该知道的网站安徽网络推广和优化
  • 电商网站 建设步骤软件优化
  • 给一个网站如何做推广做一个网站需要多少钱大概
  • 公司网站建设需推广seo如何优化网站
  • 合肥做网站的价格今天高清视频免费播放
  • 网站建设服务商排行app开发平台
  • 如何做网站结构分析免费创建个人网页
  • 网站建设 策划网上怎么注册公司免费的
  • 如何选择做网站关键词优化排名要多少钱
  • 大连网站优化公司手机端关键词排名优化软件
  • 做淘宝网站如何提取中间的提成软文范文200字
  • 有出国做飞机求同行的网站百度搜索关键词排名
  • 网站建设后台管理流程成都百度seo推广
  • 兰州网站建设哪家好怎么注册网址
  • 怎样做品牌推广网站潍坊seo外包平台
  • 重庆建设公司网站百度查重软件
  • 怎么用小旋风网站建设教程搜索引擎营销的方法有哪些
  • cbd网站建设seo做得比较好的企业案例
  • 网站报价单seo关键词排名优化哪家好
  • 怎么做域名网站备案sem分析是什么
  • 电子商务企业网站建设计划书大数据营销是什么
  • 辽宁工程监督aso排名优化知识
  • alex网站建设2022双11各大电商平台销售数据
  • 怎么样免费做公司网站网站开发北京公司