前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >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
1K0
发布2021-01-13 10:51:24
举报
代码语言: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 删除

本文分享自 作者个人站点/博客?前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与?腾讯云自媒体分享计划? ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
http://www.vxiaotou.com