| | |
| | | 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
|
| | | # 最小连接池数量
|
| | |
| | | maxActive: 20
|
| | | # 配置获取连接等待超时的时间
|
| | | maxWait: 60000
|
| | | # 配置连接超时时间
|
| | | connectTimeout: 30000
|
| | | # 配置网络超时时间
|
| | | socketTimeout: 60000
|
| | | # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
|
| | | timeBetweenEvictionRunsMillis: 60000
|
| | | # 配置一个连接在池中最小生存的时间,单位是毫秒
|
| | |
| | | testWhileIdle: true
|
| | | testOnBorrow: false
|
| | | testOnReturn: false
|
| | | webStatFilter: |
| | | webStatFilter:
|
| | | enabled: true
|
| | | statViewServlet:
|
| | | enabled: true
|
| | |
| | | allow:
|
| | | url-pattern: /druid/*
|
| | | # 控制台管理用户名和密码
|
| | | login-username: |
| | | login-password: |
| | | login-username: ruoyi
|
| | | login-password: 123456
|
| | | filter:
|
| | | stat:
|
| | | enabled: true
|
| | |
| | | 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
|
| | |
|