liurunyu
2024-11-12 a3c8c9c0ab3d680bf9f4ee2add2593fd2108441f
1
2
3
4
5
6
7
8
# 数据源配置
spring:
    #多数据源需要配置
    main:
        allow-bean-definition-overriding: true #设置为true时,后定义的bean会覆盖之前定义的相同名称的bean
    datasource: #配置数据源
        #多个数据源名称在此配置,要求与spring。datasource。[ym][sp][test]中的一致
        names: ym,sp,test