From 1ef949171daf84a3ec259ce29082bdbcf97cfad0 Mon Sep 17 00:00:00 2001 From: sugus <1020570875@qq.com> Date: Fri, 25 Jul 2025 11:54:42 +0800 Subject: [PATCH] =?UTF-8?q?docs:=E8=B0=83=E6=95=B4=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/config/application-prod.yml | 27 ++++++++++++------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/aircraft-system/src/main/resources/config/application-prod.yml b/aircraft-system/src/main/resources/config/application-prod.yml index eb45859..8fd03de 100644 --- a/aircraft-system/src/main/resources/config/application-prod.yml +++ b/aircraft-system/src/main/resources/config/application-prod.yml @@ -3,10 +3,10 @@ spring: datasource: druid: db-type: com.alibaba.druid.pool.DruidDataSource - driverClassName: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://${DB_HOST:localhost}:${DB_PORT:3306}/${DB_NAME:eladmin}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false - username: ${DB_USER:root} - password: ${DB_PWD:123456} + driverClassName: com.p6spy.engine.spy.P6SpyDriver + url: jdbc:p6spy:mysql://aishangyun.mysql.polardb.rds.aliyuncs.com:3306/aircraft-mp?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false + username: aishangyun_dev + password: asyfx@123&dev # 初始连接数,建议设置为与最小空闲连接数相同 initial-size: 20 # 最小空闲连接数,保持足够的空闲连接以应对请求 @@ -54,6 +54,12 @@ spring: wall: config: multi-statement-allow: true + redis: + #数据库索引 + database: ${REDIS_DB:1} + host: ${REDIS_HOST:172.31.108.89} + port: ${REDIS_PORT:6334} + password: ${REDIS_PWD:aircraft.redis.@2025} # 登录相关配置 login: @@ -133,15 +139,16 @@ file: amz: s3: # 地域 - region: test + region: cn-wulanchabu # 地域对应的 endpoint - endPoint: https://s3.test.com + endPoint: https://oss-cn-wulanchabu.aliyuncs.com # 访问的域名 - domain: https://s3.test.com + domain: https://aishangyun.oss-cn-wulanchabu.aliyuncs.com # 账号的认证信息,或者子账号的认证信息 - accessKey: 填写你的AccessKey - secretKey: 填写你的SecretKey + accessKey: LTAI5tRK1mszQC82s2rCkowq + secretKey: Ns8VAkRBauIuC207s3eGiqMrLbpF4e # 存储桶(Bucket) - defaultBucket: 填写你的存储桶名称 + defaultBucket: aishangyun + # 文件存储路径 timeformat: yyyy-MM \ No newline at end of file