沙钢智慧能源系统后端代码
潘志宝
2024-12-11 0780972deb5683c2cef57bf86ae0a8b8b9d219be
提交 | 用户 | 时间
02a88c 1 --- #################### 数据库相关配置 ####################
2 spring:
3   datasource:
078097 4     druid:
02a88c 5       web-stat-filter:
6         enabled: true
7       stat-view-servlet:
8         enabled: true
078097 9         allow:
02a88c 10         url-pattern: /druid/*
078097 11         login-username:
02a88c 12         login-password:
13       filter:
14         stat:
15           enabled: true
078097 16           log-slow-sql: true
02a88c 17           slow-sql-millis: 100
18           merge-sql: true
19         wall:
20           config:
21             multi-statement-allow: true
078097 22     dynamic:
23       druid:
24         initial-size: 1
25         min-idle: 1
26         max-active: 20
27         max-wait: 600000
28         time-between-eviction-runs-millis: 60000
29         min-evictable-idle-time-millis: 300000
30         max-evictable-idle-time-millis: 900000
31         validation-query: SELECT 1 FROM DUAL
02a88c 32         test-while-idle: true
33         test-on-borrow: false
34         test-on-return: false
35       primary: master
36       datasource:
37         master:
c0c33d 38           url: jdbc:mysql://127.0.0.1:3306/iailab_fast_tenant_shasteel?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
02a88c 39           username: root
40           password: Iailab@2019
41
42   redis:
078097 43     host: 127.0.0.1
44     port: 6379
45     database: 8
46     password: 123456
02a88c 47
48 --- #################### 平台相关配置 ####################
49
50 iailab:
078097 51   env:
02a88c 52     tag: ${HOSTNAME}
53   captcha:
078097 54     enable: false
02a88c 55   security:
56     mock-enable: true
078097 57   access-log:
02a88c 58     enable: false
59
078097 60   sms-code:
02a88c 61     expire-times: 10m
62     send-frequency: 1m
63     send-maximum-quantity-per-day: 10
078097 64     begin-code: 9999
65     end-code: 9999
02a88c 66   token:
67     base-url: http://127.0.0.1:48080/admin-api/system
68     tenant-id: 172
69     client-id: shasteel
70     client-secret: shasteel111111111111111
71     username: shasteel
72     password: 123456
73