chenrui
8 天以前 964da2cddac64db309ee25a001f2f56607e8928d
src/main/resources/application-druid.yml
@@ -6,16 +6,17 @@
        druid:
            # 主库数据源
            master:
                url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
#                url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
                url: jdbc:mysql://114.132.189.42:9004/product-inventory-management?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
                username: root
                password: password
                password: 123456
            # 从库数据源
            slave:
                # 从数据源开关/默认关闭
                enabled: false
                url:
                username:
                password:
                url:
                username:
                password:
            # 初始连接数
            initialSize: 5
            # 最小连接池数量
@@ -24,6 +25,10 @@
            maxActive: 20
            # 配置获取连接等待超时的时间
            maxWait: 60000
            # 配置连接超时时间
            connectTimeout: 30000
            # 配置网络超时时间
            socketTimeout: 60000
            # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
            timeBetweenEvictionRunsMillis: 60000
            # 配置一个连接在池中最小生存的时间,单位是毫秒
@@ -35,7 +40,7 @@
            testWhileIdle: true
            testOnBorrow: false
            testOnReturn: false
            webStatFilter:
            webStatFilter:
                enabled: true
            statViewServlet:
                enabled: true
@@ -43,8 +48,8 @@
                allow:
                url-pattern: /druid/*
                # 控制台管理用户名和密码
                login-username:
                login-password:
                login-username: ruoyi
                login-password: 123456
            filter:
                stat:
                    enabled: true
@@ -54,4 +59,11 @@
                    merge-sql: true
                wall:
                    config:
                        multi-statement-allow: true
                        multi-statement-allow: true
file:
#    temp-dir: D:/ruoyi/temp/uploads   # 临时目录
#    upload-dir: D:/ruoyi/prod/uploads # 正式目录
    temp-dir: /javaWork/product-inventory-management/file/temp/uploads
    upload-dir: /javaWork/product-inventory-management/file/prod/uploads