完善配置

pull/2/head
YunaiV 2021-01-26 21:33:15 +08:00
parent a7d0f30853
commit d9114504f8
1 changed files with 9 additions and 9 deletions

View File

@ -1,28 +1,27 @@
spring: spring:
application: application:
name: dashboard name: dashboard
# 数据源配置项 TODO 多数据源TODO 监控配置 # 数据源配置项 TODO 多数据源TODO 监控配置
datasource: datasource:
url: jdbc:mysql://127.0.1:33061/ruoyi-vue-pro?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT url: jdbc:mysql://127.0.1:33061/ruoyi-vue-pro?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT
driver-class-name: com.mysql.jdbc.Driver driver-class-name: com.mysql.jdbc.Driver
username: root username: root
password: 123456 password: 123456
# redis 配置 TODO 需要进行下,对接到 redisson
# Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
redis: redis:
# 地址 host: 127.0.0.1 # 地址
host: localhost port: 6379 # 端口
# 端口默认为6379 database: 0 # 数据库索引
port: 6379
# 数据库索引
database: 0
# 连接超时时间
timeout: 10s
# Servlet 配置 # Servlet 配置
servlet: servlet:
# 文件上传相关配置项 # 文件上传相关配置项
multipart: multipart:
max-file-size: 16MB # 单个文件大小 max-file-size: 16MB # 单个文件大小
max-request-size: 32MB # 设置总上传的文件大小 max-request-size: 32MB # 设置总上传的文件大小
# Spring Boot Admin 配置项 # Spring Boot Admin 配置项
boot: boot:
admin: admin:
@ -31,6 +30,7 @@ spring:
url: http://127.0.0.1:8080/${spring.boot.admin.context-path} # 设置 Spring Boot Admin Server 地址 url: http://127.0.0.1:8080/${spring.boot.admin.context-path} # 设置 Spring Boot Admin Server 地址
# Spring Boot Admin Server 服务端的相关配置 # Spring Boot Admin Server 服务端的相关配置
context-path: /admin # 配置 Spring context-path: /admin # 配置 Spring
# Jackson 配置项 # Jackson 配置项
jackson: jackson:
serialization: serialization: