From 3697669fff401971f789eacc37c6ec866ee328a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=B5=B7?= <10402852@qq.com> Date: Mon, 29 Jul 2024 15:41:37 +0800 Subject: [PATCH] 'commit' --- .../src/main/resources/bootstrap-dev.yml | 32 +++++++++++-------- Ylt/ms-user/src/main/resources/bootstrap.yml | 3 +- 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/Ylt/ms-user/src/main/resources/bootstrap-dev.yml b/Ylt/ms-user/src/main/resources/bootstrap-dev.yml index c577c86..0a8b56e 100644 --- a/Ylt/ms-user/src/main/resources/bootstrap-dev.yml +++ b/Ylt/ms-user/src/main/resources/bootstrap-dev.yml @@ -1,8 +1,10 @@ spring: data: mongodb: + # mongodb数据库 uri: mongodb://ycharge:ycharge@i100c.3322.org:13002/ycharge datasource: + # mysql数据库 url: jdbc:mysql://139.224.72.142:3307/yltcharge?useUnicode=true&characterEncoding=UTF-8 username: ycharge password: ycharge @@ -13,7 +15,7 @@ spring: type: com.alibaba.druid.pool.DruidDataSource filters: stat maxActive: 20 - + # Redis redis: database: 0 host: 139.224.72.142 @@ -24,7 +26,7 @@ spring: max-active: 8 max-idle: 8 min-idle: 0 - + # 邮件服务器 mail: host: smtp.sina.com username: i100c_report@sina.com @@ -32,22 +34,23 @@ spring: port: 587 properties: mail: - smtp: - auth: true - starttls: - enable: true - required: true - + smtp: + auth: true + starttls: + enable: true + required: true +# 负载均衡器 ribbon: eureka: - enabled: false + enabled: false # 禁用了eureka,不依赖 eureka ReadTimeout: 60000 ConnectTimeout: 60000 MaxAutoRetries: 0 MaxAutoRetriesNextServer: 1 +# 记录数据库日志 logging: level: com: @@ -60,6 +63,7 @@ logging: properties: config: debug +# 这块没看懂,待完善,此处用户管理是业务模块,它调用了别人吗? financeapi: ribbon: listOfServers: http://i100c.3322.org:32134 @@ -81,11 +85,13 @@ aliyunvinapi: ribbon: listOfServers: https://vin.shumaidata.com +# 微信 wx: config: - appId: wx9863e002c6a5f8bd - appScrect: ee9f5f214f2054f504544476ae542231 + appId: wx9863e002c6a5f8bd + appScrect: ee9f5f214f2054f504544476ae542231 +# 阿里大鱼的短信服务 aliSms: product: Dysmsapi domain: dysmsapi.aliyuncs.com @@ -97,14 +103,14 @@ aliSms: signName: 快卜新能源 templateCode: SMS_200181031 +# 腾讯OCR tencentOcr: secretId: AKIDBAF4e0p5w4XlmYeBuud6IGzg8dttMIB6 secretKey: zmJZXN1zgIfnfHclhnriIdhpiOsPwDEz region: ap-shanghai endpoint: ocr.tencentcloudapi.com - - +# 阿里云存储 aliyun: oss: imageUrl: http://senergyimage.i100c.com/ diff --git a/Ylt/ms-user/src/main/resources/bootstrap.yml b/Ylt/ms-user/src/main/resources/bootstrap.yml index 8373fec..b980812 100644 --- a/Ylt/ms-user/src/main/resources/bootstrap.yml +++ b/Ylt/ms-user/src/main/resources/bootstrap.yml @@ -44,13 +44,14 @@ mybatis-plus: map-underscore-to-camel-case: true cache-enabled: false +# 分页插件 pagehelper: helperDialect: mysql reasonable: true supportMethodsArguments: true params: count=countSql - +# 阿里云短信 aliSms: product: Dysmsapi domain: dysmsapi.aliyuncs.com