Commit d9114504f85f6b07fbc4422b965fefba083b2a4d
1 parent
a7d0f308
完善配置
Showing
1 changed file
with
9 additions
and
9 deletions
src/main/resources/application.yaml
| 1 | 1 | spring: |
| 2 | 2 | application: |
| 3 | 3 | name: dashboard |
| 4 | + | |
| 4 | 5 | # 数据源配置项 TODO 多数据源;TODO 监控配置 |
| 5 | 6 | datasource: |
| 6 | 7 | url: jdbc:mysql://127.0.1:33061/ruoyi-vue-pro?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT |
| 7 | 8 | driver-class-name: com.mysql.jdbc.Driver |
| 8 | 9 | username: root |
| 9 | 10 | password: 123456 |
| 10 | - # redis 配置 TODO 需要进行下,对接到 redisson | |
| 11 | + | |
| 12 | + # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优 | |
| 11 | 13 | redis: |
| 12 | - # 地址 | |
| 13 | - host: localhost | |
| 14 | - # 端口,默认为6379 | |
| 15 | - port: 6379 | |
| 16 | - # 数据库索引 | |
| 17 | - database: 0 | |
| 18 | - # 连接超时时间 | |
| 19 | - timeout: 10s | |
| 14 | + host: 127.0.0.1 # 地址 | |
| 15 | + port: 6379 # 端口 | |
| 16 | + database: 0 # 数据库索引 | |
| 17 | + | |
| 20 | 18 | # Servlet 配置 |
| 21 | 19 | servlet: |
| 22 | 20 | # 文件上传相关配置项 |
| 23 | 21 | multipart: |
| 24 | 22 | max-file-size: 16MB # 单个文件大小 |
| 25 | 23 | max-request-size: 32MB # 设置总上传的文件大小 |
| 24 | + | |
| 26 | 25 | # Spring Boot Admin 配置项 |
| 27 | 26 | boot: |
| 28 | 27 | admin: |
| ... | ... | @@ -31,6 +30,7 @@ spring: |
| 31 | 30 | url: http://127.0.0.1:8080/${spring.boot.admin.context-path} # 设置 Spring Boot Admin Server 地址 |
| 32 | 31 | # Spring Boot Admin Server 服务端的相关配置 |
| 33 | 32 | context-path: /admin # 配置 Spring |
| 33 | + | |
| 34 | 34 | # Jackson 配置项 |
| 35 | 35 | jackson: |
| 36 | 36 | serialization: | ... | ... |