wuzeyu
2024-12-11 4bd1bd1a4618126858242f4ca4a61c303f5c7529
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