| | |
| | | --- #################### 数据库相关配置 #################### |
| | | spring: |
| | | datasource: |
| | | druid: # Druid 【监控】相关的全局配置 |
| | | druid: |
| | | web-stat-filter: |
| | | enabled: true |
| | | stat-view-servlet: |
| | | enabled: true |
| | | allow: # 设置白名单,不填则允许所有访问 |
| | | allow: |
| | | url-pattern: /druid/* |
| | | login-username: # 控制台管理用户名和密码 |
| | | login-username: |
| | | login-password: |
| | | filter: |
| | | stat: |
| | | enabled: true |
| | | log-slow-sql: true # 慢 SQL 记录 |
| | | log-slow-sql: true |
| | | slow-sql-millis: 100 |
| | | merge-sql: true |
| | | wall: |
| | | config: |
| | | multi-statement-allow: true |
| | | dynamic: # 多数据源配置 |
| | | druid: # Druid 【连接池】相关的全局配置 |
| | | initial-size: 1 # 初始连接数 |
| | | min-idle: 1 # 最小连接池数量 |
| | | max-active: 20 # 最大连接池数量 |
| | | max-wait: 600000 # 配置获取连接等待超时的时间,单位:毫秒 |
| | | time-between-eviction-runs-millis: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位:毫秒 |
| | | min-evictable-idle-time-millis: 300000 # 配置一个连接在池中最小生存的时间,单位:毫秒 |
| | | max-evictable-idle-time-millis: 900000 # 配置一个连接在池中最大生存的时间,单位:毫秒 |
| | | validation-query: SELECT 1 FROM DUAL # 配置检测连接是否有效 |
| | | dynamic: |
| | | druid: |
| | | initial-size: 1 |
| | | min-idle: 1 |
| | | max-active: 20 |
| | | max-wait: 600000 |
| | | time-between-eviction-runs-millis: 60000 |
| | | min-evictable-idle-time-millis: 300000 |
| | | max-evictable-idle-time-millis: 900000 |
| | | validation-query: SELECT 1 FROM DUAL |
| | | test-while-idle: true |
| | | test-on-borrow: false |
| | | test-on-return: false |
| | |
| | | username: root |
| | | password: Iailab@2019 |
| | | |
| | | # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优 |
| | | redis: |
| | | host: 127.0.0.1 # 地址 |
| | | port: 6379 # 端口 |
| | | database: 8 # 数据库索引 |
| | | password: 123456 # 密码,建议生产环境开启 |
| | | host: 127.0.0.1 |
| | | port: 6379 |
| | | database: 8 |
| | | password: 123456 |
| | | |
| | | --- #################### 平台相关配置 #################### |
| | | |
| | | # 平台配置项,设置当前项目所有自定义的配置 |
| | | iailab: |
| | | env: # 多环境的配置项 |
| | | env: |
| | | tag: ${HOSTNAME} |
| | | captcha: |
| | | enable: false # 本地环境,暂时关闭图片验证码,方便登录等接口的测试 |
| | | enable: false |
| | | security: |
| | | mock-enable: true |
| | | access-log: # 访问日志的配置项 |
| | | access-log: |
| | | enable: false |
| | | |
| | | sms-code: # 短信验证码相关的配置项 |
| | | sms-code: |
| | | expire-times: 10m |
| | | send-frequency: 1m |
| | | send-maximum-quantity-per-day: 10 |
| | | begin-code: 9999 # 这里配置 9999 的原因是,测试方便。 |
| | | end-code: 9999 # 这里配置 9999 的原因是,测试方便。 |
| | | begin-code: 9999 |
| | | end-code: 9999 |
| | | token: |
| | | base-url: http://127.0.0.1:48080/admin-api/system |
| | | tenant-id: 172 |