大改:重构项目
This commit is contained in:
@@ -44,7 +44,7 @@ public class PaymentCacheService {
|
|||||||
|
|
||||||
if (ObjectUtil.isNotEmpty(payment)) {
|
if (ObjectUtil.isNotEmpty(payment)) {
|
||||||
log.debug("从缓存获取支付配置成功: {}", primaryKey);
|
log.debug("从缓存获取支付配置成功: {}", primaryKey);
|
||||||
return payment;
|
// return payment;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 2. 如果 Payment:1* 格式不存在,尝试原有格式
|
// 2. 如果 Payment:1* 格式不存在,尝试原有格式
|
||||||
@@ -55,7 +55,7 @@ public class PaymentCacheService {
|
|||||||
log.debug("从兜底缓存获取支付配置成功: {}", fallbackKey);
|
log.debug("从兜底缓存获取支付配置成功: {}", fallbackKey);
|
||||||
// 将查询结果缓存到 Payment:1* 格式
|
// 将查询结果缓存到 Payment:1* 格式
|
||||||
redisUtil.set(primaryKey, payment);
|
redisUtil.set(primaryKey, payment);
|
||||||
return payment;
|
// return payment;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 3. 最后从数据库查询
|
// 3. 最后从数据库查询
|
||||||
|
|||||||
@@ -9,6 +9,13 @@ spring:
|
|||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
type: com.alibaba.druid.pool.DruidDataSource
|
type: com.alibaba.druid.pool.DruidDataSource
|
||||||
|
|
||||||
|
# redis
|
||||||
|
redis:
|
||||||
|
database: 0
|
||||||
|
host: 1Panel-redis-Q1LE
|
||||||
|
port: 6379
|
||||||
|
password: redis_WSDb88
|
||||||
|
|
||||||
# 日志配置
|
# 日志配置
|
||||||
logging:
|
logging:
|
||||||
file:
|
file:
|
||||||
@@ -21,12 +28,6 @@ logging:
|
|||||||
socketio:
|
socketio:
|
||||||
host: 0.0.0.0 #IP地址
|
host: 0.0.0.0 #IP地址
|
||||||
|
|
||||||
redis:
|
|
||||||
database: 0
|
|
||||||
host: 1Panel-redis-Q1LE
|
|
||||||
port: 6379
|
|
||||||
password: redis_WSDb88
|
|
||||||
|
|
||||||
# MQTT配置
|
# MQTT配置
|
||||||
mqtt:
|
mqtt:
|
||||||
enabled: false # 添加开关来禁用MQTT服务
|
enabled: false # 添加开关来禁用MQTT服务
|
||||||
|
|||||||
Reference in New Issue
Block a user