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

1. 报错信息

Description:

The bean 'dataSource', defined in BeanDefinition defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class], could not be registered. A bean with that name has already been defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class] and overriding is disabled.

Action:

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

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

 main:
allow-bean-definition-overriding: true #当遇到同样名字的时候,是否允许覆盖注册
上一篇:关于遍历javascript 中的json串浏览器输出的结果不统一的情况


下一篇:github学习:如何从本地把项目上传到github&&如何把github项目通过clone复制下来,详细教程