报错信息:

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/相关推荐

  1. springboot easypoi 报错The bean ‘beanNameViewResolver‘, defined in class path resource [cn/afterturn/e

    亲测好用!!!!!!!!!!!!!!! 事故现场: The bean 'beanNameViewResolver', defined in class path resource [cn/aftert ...

  2. springboot easypoi 报错The bean 'beanNameViewResolver', defined in class path resource [cn/afterturn/e

    今天在用springboot easypoi 做导出导入时,配置完成后启动项目报The bean 'beanNameViewResolver', defined in class path resou ...

  3. 分页查询时报错:The bean ‘localeResolver‘, defined in class path resource [com/botany/spore/core/config/Comm

    问题描述: *************************** APPLICATION FAILED TO START ***************************Description ...

  4. springcloud项目启动时报错 The bean ‘dataSource‘, defined in class path resource

    项目启动时报错,如下: Error starting ApplicationContext. To display the conditions report re-run your applicat ...

  5. 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 ...

  6. The bean ‘xxx‘, defined in class path resource , could not be registered. A bean with that name has

    springboot在配置Bean的时候,可能会出现这样的错误!!! 原因是因为相同名字的bean已经存在了. *************************** APPLICATION FAIL ...

  7. 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 ...

  8. 启动springboot报错Error creating bean with name 'dataSource' defined in class path resource

    2019独角兽企业重金招聘Python工程师标准>>> 启动springboot报错Error creating bean with name 'dataSource' define ...

  9. 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 ...

最新文章

  1. ffmpeg编译 c++ 常量中有换行符
  2. HDR 拍照模式的原理,实现及应用
  3. ESP8266的网状网络(Mesh Network)
  4. 【数据结构与算法】之深入解析“课程表III”的求解思路与算法示例
  5. HDU - 4552 怪盗基德的挑战书(后缀数组+RMQ/KMP+dp)
  6. 算法设计与分析——回溯法——旅行售货员问题
  7. 特斯拉已撤回德国电池工厂建厂补贴申请 原有望获得近13亿美元
  8. 李想当年是被赶出汽车之家?真相了...
  9. linux6.8设置中文界面,Linux下安装多媒体中心 Kodi 18.8 新版本并设置中文界面
  10. 【转】android gravity属性 和 weight属性
  11. ABP文档笔记 - 通知
  12. 【阿里云镜像】更新阿里巴巴开源镜像站镜像——Ubuntu镜像
  13. write-through与write-back的区别
  14. Nmos驱动电路分析
  15. 一款表达谱数据分析的神器--CCLE--转载
  16. 物理建模钢琴-Arturia Piano V2 v2.5.0.3410 MacOSX
  17. Elasticsearch可视化工具-----cerebro(比head更优秀)
  18. autium pcb手动布线_画PCB时,一些非常好的布线技巧
  19. 信息学竞赛复赛备考策略
  20. 素描静物绘画需要掌握的基础知识有哪些

热门文章

  1. android飞机大战功能,安卓飞机大战(二) SurfaceView实现自制背景
  2. 如何使用 Kubernetes 部署 Flink 应用
  3. 绿地再次牵手国际会展业巨头,加速打造会展板块
  4. 亿级用户百TB级数据的 AIOps 技术实践之路(增强版)
  5. Spring IOC理论推导及其本质
  6. 一个简单的猜数字APP(一)
  7. 禅道项目管理系统安装后显示为空白
  8. 一些基础的算法知识——《图解算法》
  9. 计算机网络 密钥分配
  10. 安装CAD缺少html,Win10系统安装CAD2007失败缺少.NET组件如何解决