其他分享
首页 > 其他分享> > 2020-12-25

2020-12-25

作者:互联网

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
 

解决办法:

main:
    allow-bean-definition-overriding: true #当遇到同样名字的时候,是否允许覆盖注册

标签:25,12,defined,bean,overriding,2020,path,Hikari,class
来源: https://blog.csdn.net/kt906885821/article/details/111670100