The bean ‘beanNameViewResolver‘, defined in class path resource [cn/afterturn/easypoi/configuration/
报错信息:
Description:
The bean 'beanNameViewResolver', defined in class path resource[cn/afterturn/easypoi/configuration/EasyPoiAutoConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/error/ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration.class] and overriding is disabled.
Action:
Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=trueDisconnected from the target VM, transport: 'socket'Process finished with exit code 0
大致内容:
在类路径资源[cn / afterturn / easypoi / configuration / EasyPoiAutoConfiguration.class]中定义的bean“beanNameViewResolver”无法注册。 具有该名称的bean已在类路径资源[org / springframework / boot / autoconfigure / web / servlet / error / ErrorMvcAutoConfiguration $ WhitelabelErrorViewConfiguration.class]中定义,并且已禁用覆盖。
解决方案:
考虑通过设置spring.main.allow-bean-definition-overriding = true来重命名其中一个bean或启用覆盖,在spring boot项目的配置文件中添加下面这句话就可以了
application.yml
spring:main:allow-bean-definition-overriding: true
application.properties
spring.main.allow-bean-definition-overriding = true
idea版本为2020.1
原文链接:The bean 'beanNameViewResolver', defined in class path resource [cn/afterturn/easypoi/configuration/_呆头呆脑的纸人的博客-CSDN博客完整描述:Description:The bean 'beanNameViewResolver', defined in class path resource [cn/afterturn/easypoi/configuration/EasyPoiAutoConfiguration.class], could not be registered. A bean with that name...https://blog.csdn.net/Attacked_code/article/details/90713010
The bean ‘beanNameViewResolver‘, defined in class path resource [cn/afterturn/easypoi/configuration/相关推荐
- springboot easypoi 报错The bean ‘beanNameViewResolver‘, defined in class path resource [cn/afterturn/e
亲测好用!!!!!!!!!!!!!!! 事故现场: The bean 'beanNameViewResolver', defined in class path resource [cn/aftert ...
- springboot easypoi 报错The bean 'beanNameViewResolver', defined in class path resource [cn/afterturn/e
今天在用springboot easypoi 做导出导入时,配置完成后启动项目报The bean 'beanNameViewResolver', defined in class path resou ...
- 分页查询时报错:The bean ‘localeResolver‘, defined in class path resource [com/botany/spore/core/config/Comm
问题描述: *************************** APPLICATION FAILED TO START ***************************Description ...
- springcloud项目启动时报错 The bean ‘dataSource‘, defined in class path resource
项目启动时报错,如下: Error starting ApplicationContext. To display the conditions report re-run your applicat ...
- The bean ‘api‘, defined in class path resource [com/common/swagger/SwaggerAutoConf
The bean 'api', defined in class path resource [com/common/swagger/SwaggerAutoConf 1.解决办法-1 将重复的bean ...
- The bean ‘xxx‘, defined in class path resource , could not be registered. A bean with that name has
springboot在配置Bean的时候,可能会出现这样的错误!!! 原因是因为相同名字的bean已经存在了. *************************** APPLICATION FAIL ...
- A bean with that name has already been defined in class path resource [.] and overriding is disabled
A bean with that name has already been defined in class path resource [org/springframework/cloud/com ...
- 启动springboot报错Error creating bean with name 'dataSource' defined in class path resource
2019独角兽企业重金招聘Python工程师标准>>> 启动springboot报错Error creating bean with name 'dataSource' define ...
- Meavn 搭建项目遇到Error creating bean with name 'sessionFactory' defined in class path resource...
Error creating bean with name 'sessionFactory' defined in class path resource .nested exception is j ...
最新文章
- ffmpeg编译 c++ 常量中有换行符
- HDR 拍照模式的原理,实现及应用
- ESP8266的网状网络(Mesh Network)
- 【数据结构与算法】之深入解析“课程表III”的求解思路与算法示例
- HDU - 4552 怪盗基德的挑战书(后缀数组+RMQ/KMP+dp)
- 算法设计与分析——回溯法——旅行售货员问题
- 特斯拉已撤回德国电池工厂建厂补贴申请 原有望获得近13亿美元
- 李想当年是被赶出汽车之家?真相了...
- linux6.8设置中文界面,Linux下安装多媒体中心 Kodi 18.8 新版本并设置中文界面
- 【转】android gravity属性 和 weight属性
- ABP文档笔记 - 通知
- 【阿里云镜像】更新阿里巴巴开源镜像站镜像——Ubuntu镜像
- write-through与write-back的区别
- Nmos驱动电路分析
- 一款表达谱数据分析的神器--CCLE--转载
- 物理建模钢琴-Arturia Piano V2 v2.5.0.3410 MacOSX
- Elasticsearch可视化工具-----cerebro(比head更优秀)
- autium pcb手动布线_画PCB时,一些非常好的布线技巧
- 信息学竞赛复赛备考策略
- 素描静物绘画需要掌握的基础知识有哪些