zoukankan      html  css  js  c++  java
  • 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中配置之后可以正常启动,但是不知道会不会对后期有影响

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

    作者:彼岸舞

    时间:202117

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

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

  • 相关阅读:
    继承与钻石继承
    面向对象----对象的组合和
    认知类和对象的关系
    初识面向对象----类和对象的关系
    其他题目
    三级菜单
    用户登陆
    购物车题目
    函数练习题目
    类加载的过程
  • 原文地址:https://www.cnblogs.com/flower-dance/p/14245763.html
Copyright © 2011-2022 走看看