中国算力平台算力登记系统2.0
yanzhaofeige
2024-09-30 6293d2b460bd17eee8b078f5a53ee4b2a0eea88e
cpzidc-admin/src/main/resources/application-druid.yml
@@ -6,9 +6,9 @@
        druid:
            # 主库数据源
            master:
                url: jdbc:mysql://localhost:3306/cpz-idc?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
                username: root
                password: password
                url: jdbc:mysql://rm-2ze76o0e1v97mb1689o.mysql.rds.aliyuncs.com:23306/db_cpz_idc?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
                username: laodai_20220711
                password: 'odc#cwei288^49'
            # 从库数据源
            slave:
                # 从数据源开关/默认关闭
@@ -58,4 +58,26 @@
                    merge-sql: true
                wall:
                    config:
                        multi-statement-allow: true
                        multi-statement-allow: true
    # redis 配置
    redis:
        # 地址
        host: 116.204.121.181
        # 端口,默认为6379
        port: 26379
        # 数据库索引
        database: 15
        # 密码
        password: JriL5qZ!2uO456$xzh
        # 连接超时时间
        timeout: 10s
        lettuce:
            pool:
                # 连接池中的最小空闲连接
                min-idle: 1
                # 连接池中的最大空闲连接
                max-idle: 8
                # 连接池的最大数据库连接数
                max-active: 8
                # #连接池最大阻塞等待时间(使用负值表示没有限制)
                max-wait: -1ms