39 Star 232 Fork 98

悟耘开源 / easypoi-spring-boot-starter

 / 详情

跟springboot 2.1.x版本冲突

待办的
任务
创建于  
2018-11-28 10:27

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.

评论 (4)

rill 创建了任务

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

Spring配置

spring:
main:
allow-bean-definition-overriding: true
这样就解决了

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(4)
477177 wangsy5415780 1675931553
Java
1
https://gitee.com/lemur/easypoi-spring-boot-starter.git
git@gitee.com:lemur/easypoi-spring-boot-starter.git
lemur
easypoi-spring-boot-starter
easypoi-spring-boot-starter

搜索帮助