spring: datasource: dynamic: # 设置默认的数据源或者数据源组,默认值即为 master primary: master datasource: # 主库数据源 master: type: ${spring.datasource.type} driver-class-name: com.mysql.cj.jdbc.Driver url: ${datasource.pet-system.url} username: ${datasource.pet-system.username} password: ${datasource.pet-system.password} # oracle: # type: ${spring.datasource.type} # driverClassName: oracle.jdbc.OracleDriver # url: ${datasource.system-oracle.url} # username: ${datasource.system-oracle.username} # password: ${datasource.system-oracle.password} # postgres: # type: ${spring.datasource.type} # driverClassName: org.postgresql.Driver # url: ${datasource.system-postgres.url} # username: ${datasource.system-postgres.username} # password: ${datasource.system-postgres.password} # 多租户配置 tenant: # 是否开启 enable: true # 排除表(不需要租户隔离的表) excludes: - flf_level - flf_right - flf_level_right - flf_fulfiller - flf_audit - flf_points_log - flf_balance_log - flf_reward_log