首页 > 其他分享> > 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
作者:互联网
*************************** 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
内容关于:工作中用到的小技术
本文属于作者原创,未经允许,禁止转发
标签:definiti,overriding,resource,Consider,bean,main,class,renaming 来源: https://www.cnblogs.com/flower-dance/p/14245763.html