From 131d4eb1568028f65e7977d2867cf57edbb1b496 Mon Sep 17 00:00:00 2001 From: chc <1501738723@qq.com> Date: Thu, 8 May 2025 14:26:03 +0800 Subject: [PATCH] =?UTF-8?q?config=E4=B8=8B=E7=9A=84application=E4=B8=AD?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1IP=E5=9C=B0=E5=9D=80=E6=9B=B4=E6=8D=A2?= =?UTF-8?q?=E4=B8=BA127.0.0.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/application.yml | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/config/application.yml b/config/application.yml index 777ef5d83..1ace9f22b 100644 --- a/config/application.yml +++ b/config/application.yml @@ -20,6 +20,19 @@ management: exposure: include: '*' spring: + mail: + host: smtp.qq.com + port: 465 + username: lifenlong@foxmail.com + password: dirpxpqgfvysbefh + protocol: smtps + properties: + mail: + smtp: + auth: true + starttls: + enable: true + # 要在其中注册的Spring Boot Admin Server的URL。 boot: admin: @@ -29,8 +42,8 @@ spring: type: redis # Redis redis: - host: 192.168.31.100 - port: 30379 + host: 127.0.0.1 + port: 6379 password: lilishop lettuce: pool: @@ -60,7 +73,7 @@ spring: default-datasource: type: com.alibaba.druid.pool.DruidDataSource driverClassName: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://192.168.31.100:30306/lilishop?useUnicode=true&characterEncoding=utf-8&useSSL=false&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai + url: jdbc:mysql://127.0.0.1:3306/lilishop?useUnicode=true&characterEncoding=utf-8&useSSL=false&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai username: root password: lilishop maxActive: 50 @@ -211,10 +224,10 @@ lili: faultTolerant: 3 system: isDemoSite: false - # 脱敏级别: - # 0:不做脱敏处理 - # 1:管理端用户手机号等信息脱敏 - # 2:商家端信息脱敏(为2时,表示管理端,商家端同时脱敏) + # 脱敏级别: + # 0:不做脱敏处理 + # 1:管理端用户手机号等信息脱敏 + # 2:商家端信息脱敏(为2时,表示管理端,商家端同时脱敏) sensitiveLevel: 1 statistics: @@ -256,7 +269,7 @@ lili: data: elasticsearch: cluster-name: elasticsearch - cluster-nodes: 192.168.31.100:30920 + cluster-nodes: 127.0.0.1:9200 index: number-of-replicas: 0 number-of-shards: 3 @@ -267,7 +280,7 @@ lili: # password: LiLiShopES logstash: - server: 192.168.31.100:30560 + server: 127.0.0.1:4560 rocketmq: promotion-topic: shop_lili_promotion_topic promotion-group: shop_lili_promotion_group @@ -288,7 +301,7 @@ lili: after-sale-topic: shop_lili_after_sale_topic after-sale-group: shop_lili_after_sale_group rocketmq: - name-server: 192.168.31.100:9876 + name-server: 127.0.0.1:9876 isVIPChannel: false producer: group: lili_group @@ -297,7 +310,7 @@ rocketmq: xxl: job: admin: - addresses: http://192.168.31.100:30001/xxl-job-admin + addresses: http://127.0.0.1:9001/xxl-job-admin executor: appname: xxl-job-executor-lilishop address: