-
admin
2024-11-20 0bdc902bca3d9109014c18fd9e7ce918a11afb4e
billion-admin/src/main/resources/application-druid.yml
@@ -6,16 +6,16 @@
        druid:
            # 主库数据源
            master:
                url: jdbc:mysql://192.168.0.189:3306/billion-db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
                url: jdbc:mysql://127.0.0.1:3306/billion-db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
                username: root
                password: 123456
                password: root
            # 从库数据源
            slave:
                # 从数据源开关/默认关闭
                enabled: false
                url:
                username:
                password:
#            slave:
#                # 从数据源开关/默认关闭
#                enabled: false
#                url: jdbc:mysql://127.0.0.1:3306/billion-db-self?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
#                username: root
#                password: root
            # 初始连接数
            initialSize: 5
            # 最小连接池数量