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