首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definiti

Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definiti

作者头像
彼岸舞
发布于 2021-01-13 10:51:24
发布于 2021-01-13 10:51:24
1.3K0
举报
代码语言:javascript
复制
***************************
APPLICATION FAILED TO START
***************************

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=true

昨天还好好的项目,今天突然提示这个错误,看提示好像是EasyPoi的一个Bean的注册和Spring中的一个Bean的注册名称碰撞了

下面提示可以采用覆盖注册解决

在YML中配置之后可以正常启动,但是不知道会不会对后期有影响

有知道的大佬可以在评论区指定我一下,谢谢

作者:彼岸舞

时间:2021\01\07

内容关于:工作中用到的小技术

本文属于作者原创,未经允许,禁止转发

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2021-01-07 ,如有侵权请联系 cloudcommunity@tencent.com 删除
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档