From 74bd0ced956d39ed89df4b4b71da523c2fbafe62 Mon Sep 17 00:00:00 2001 From: tanzs Date: Mon, 10 Mar 2025 20:02:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=9B=B4=E6=94=B9oss=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application-dev.yml | 22 ++++----- .../src/main/resources/application-prod.yml | 52 ++++++++++++++++------ .../src/main/resources/application-test.yml | 24 +++++----- 3 files changed, 62 insertions(+), 36 deletions(-) diff --git a/jeecg-module-system/jeecg-system-start/src/main/resources/application-dev.yml b/jeecg-module-system/jeecg-system-start/src/main/resources/application-dev.yml index 29507ad..984f81b 100644 --- a/jeecg-module-system/jeecg-system-start/src/main/resources/application-dev.yml +++ b/jeecg-module-system/jeecg-system-start/src/main/resources/application-dev.yml @@ -232,18 +232,18 @@ jeecg: shiro: excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/bigscreen/category/**,/bigscreen/visual/**,/bigscreen/map/**,/jmreport/bigscreen2/** #阿里云oss存储和大鱼短信秘钥配置 - oss: - accessKey: LTAI5tPfZo39q2r9Sr5mW84u - secretKey: XxExGallsV4O9nERHpVsQg2XtPCU7r - endpoint: oss-cn-guangzhou.aliyuncs.com - bucketName: augcl - staticDomain: https://img.augcl.com # oss: -# accessKey: LTAI5tHJ2CiaSEZGtYwrPcwS -# secretKey: egOOGtnxgltLlMc488YeXHDVU2cwVm -# endpoint: oss-cn-shenzhen.aliyuncs.com -# bucketName: shengchuangyunkong -# staticDomain: https://img.shengchuangyunkong.com +# accessKey: LTAI5tPfZo39q2r9Sr5mW84u +# secretKey: XxExGallsV4O9nERHpVsQg2XtPCU7r +# endpoint: oss-cn-guangzhou.aliyuncs.com +# bucketName: augcl +# staticDomain: https://img.augcl.com + oss: + accessKey: LTAI5tHJ2CiaSEZGtYwrPcwS + secretKey: egOOGtnxgltLlMc488YeXHDVU2cwVm + endpoint: oss-cn-shenzhen.aliyuncs.com + bucketName: shengchuangyunkong + staticDomain: https://img.shengchuangyunkong.com # 短信模板 sms-template: # 签名 diff --git a/jeecg-module-system/jeecg-system-start/src/main/resources/application-prod.yml b/jeecg-module-system/jeecg-system-start/src/main/resources/application-prod.yml index f2876f5..68a189e 100644 --- a/jeecg-module-system/jeecg-system-start/src/main/resources/application-prod.yml +++ b/jeecg-module-system/jeecg-system-start/src/main/resources/application-prod.yml @@ -64,7 +64,7 @@ spring: quartz: job-store-type: jdbc initialize-schema: embedded - #定时任务开关,true-开 false-关 + #定时任务启动开关,true-开 false-关 auto-startup: true #延迟1秒启动定时任务 startup-delay: 1s @@ -163,9 +163,9 @@ spring: slow-sql-millis: 5000 datasource: master: - url: jdbc:mysql://127.0.0.1:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai + url: jdbc:mysql://175.24.40.40:3306/contract?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai username: root - password: root + password: RKpGX%Hz driver-class-name: com.mysql.cj.jdbc.Driver # 多数据源配置 #multi-datasource1: @@ -176,9 +176,9 @@ spring: #redis 配置 redis: database: 0 - host: 127.0.0.1 + host: 175.24.40.40 port: 6379 - password: '' + password: 'scyk.123456' #mybatis plus 设置 mybatis-plus: mapper-locations: classpath*:org/jeecg/**/xml/*Mapper.xml @@ -216,7 +216,7 @@ jeecg: signatureSecret: dd05f1c54d63749eda95f9fa6d49v442a #签名拦截接口 signUrls: /sys/dict/getDictItems/*,/sys/dict/loadDict/*,/sys/dict/loadDictOrderByValue/*,/sys/dict/loadDictItem/*,/sys/dict/loadTreeData,/sys/api/queryTableDictItemsByCode,/sys/api/queryFilterTableDictInfo,/sys/api/queryTableDictByKeys,/sys/api/translateDictFromTable,/sys/api/translateDictFromTableByKeys,/sys/sendChangePwdSms,/sys/user/sendChangePhoneSms,/sys/sms,/desform/api/sendVerifyCode - # local\minio\alioss + # 本地:local、Minio:minio、阿里云:alioss uploadType: alioss # 前端访问地址 domainUrl: @@ -232,12 +232,18 @@ jeecg: shiro: excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/bigscreen/category/**,/bigscreen/visual/**,/bigscreen/map/**,/jmreport/bigscreen2/**,/api/getUserInfo #阿里云oss存储和大鱼短信秘钥配置 +# oss: +# accessKey: LTAI5tPfZo39q2r9Sr5mW84u +# secretKey: XxExGallsV4O9nERHpVsQg2XtPCU7r +# endpoint: oss-cn-guangzhou.aliyuncs.com +# bucketName: augcl +# staticDomain: https://img.augcl.com oss: - accessKey: ?? - secretKey: ?? - endpoint: oss-cn-beijing.aliyuncs.com - bucketName: jeecgdev - staticDomain: https://static.jeecg.com + accessKey: LTAI5tHJ2CiaSEZGtYwrPcwS + secretKey: egOOGtnxgltLlMc488YeXHDVU2cwVm + endpoint: oss-cn-shenzhen.aliyuncs.com + bucketName: shengchuangyunkong + staticDomain: https://img.shengchuangyunkong.com # 短信模板 sms-template: # 签名 @@ -286,8 +292,8 @@ jeecg: logRetentionDays: 30 #分布式锁配置 redisson: - address: 127.0.0.1:6379 - password: + address: 175.24.40.40:6379 + password: scyk.123456 type: STANDALONE enabled: true # 百度开放API配置 @@ -339,3 +345,23 @@ justauth: type: default prefix: 'demo::' timeout: 1h + +# 微信小程序配置 +wx: + miniapp: + appid: wx5b4b75c83b7485b1 + secret: 9855c4e1ee863bf63ce47b718e18f8fa + aesKey: '' + msgDataFormat: 'JSON' # 消息格式,XML或者JSON. + token: '' + config-storage: + key-prefix: 'wa' # 相关redis前缀配置: wa(默认) + type: RedisTemplate # 配置类型: Memory(默认), Jedis, RedisTemplate + redis: + database: 0 + host: 175.24.40.40 + port: 6379 + password: 'scyk.123456' + #连接超时时间 + timeout: 5000 + http-client-type: 'HttpClient' # http客户端类型: HttpClient(默认), OkHttp, JoddHttp diff --git a/jeecg-module-system/jeecg-system-start/src/main/resources/application-test.yml b/jeecg-module-system/jeecg-system-start/src/main/resources/application-test.yml index 19c80b3..acde93e 100644 --- a/jeecg-module-system/jeecg-system-start/src/main/resources/application-test.yml +++ b/jeecg-module-system/jeecg-system-start/src/main/resources/application-test.yml @@ -230,20 +230,20 @@ jeecg: # 字体路径 fonts: "/opt/fonts/simsun.ttc,0" shiro: - excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/bigscreen/category/**,/bigscreen/visual/**,/bigscreen/map/**,/jmreport/bigscreen2/** + excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/bigscreen/category/**,/bigscreen/visual/**,/bigscreen/map/**,/jmreport/bigscreen2/**,/api/getUserInfo #阿里云oss存储和大鱼短信秘钥配置 - oss: - accessKey: LTAI5tPfZo39q2r9Sr5mW84u - secretKey: XxExGallsV4O9nERHpVsQg2XtPCU7r - endpoint: oss-cn-guangzhou.aliyuncs.com - bucketName: augcl - staticDomain: https://img.augcl.com # oss: -# accessKey: LTAI5tHJ2CiaSEZGtYwrPcwS -# secretKey: egOOGtnxgltLlMc488YeXHDVU2cwVm -# endpoint: oss-cn-shenzhen.aliyuncs.com -# bucketName: shengchuangyunkong -# staticDomain: https://img.shengchuangyunkong.com +# accessKey: LTAI5tPfZo39q2r9Sr5mW84u +# secretKey: XxExGallsV4O9nERHpVsQg2XtPCU7r +# endpoint: oss-cn-guangzhou.aliyuncs.com +# bucketName: augcl +# staticDomain: https://img.augcl.com + oss: + accessKey: LTAI5tHJ2CiaSEZGtYwrPcwS + secretKey: egOOGtnxgltLlMc488YeXHDVU2cwVm + endpoint: oss-cn-shenzhen.aliyuncs.com + bucketName: shengchuangyunkong + staticDomain: https://img.shengchuangyunkong.com # 短信模板 sms-template: # 签名