config下的application中服务IP地址更换为127.0.0.1

This commit is contained in:
chc
2025-05-08 14:26:03 +08:00
parent ffa0b0db30
commit 131d4eb156

View File

@@ -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: