代码优化

This commit is contained in:
TL
2025-07-02 09:54:43 +08:00
parent b45099f816
commit c8e1a1463f
35 changed files with 334 additions and 81 deletions

View File

@ -98,8 +98,8 @@ spring:
redis:
sentinel:
master: eshop-redis
nodes: 10.125.164.124:32718, 10.125.164.118:32716, 10.125.164.121:32716
password: Unicom#135
nodes: 10.0.0.125:6379
password:
# 天宫Eureka配置
eureka:
@ -118,7 +118,7 @@ mybatis-plus:
map-underscore-to-camel-case: true
auto-mapping-behavior: full
# 这个配置会将执行的sql打印出来在开发或测试的时候可以用
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
mapper-locations: classpath*:com/chinaunicom/**/mapper/*Mapper.xml
global-config:
# 逻辑删除配置
@ -127,6 +127,12 @@ mybatis-plus:
logic-not-delete-value: normal # 逻辑删除标记:正常数据
logic-delete-value: deleted # 逻辑删除标记:已删除的数据
type-aliases-package: com.chinaunicom.mall.ebtp.project
logging:
level:
com.your.mapper.package: trace # 改为TRACE级别可以看到更详细参数
org.apache.ibatis: debug
com.baomidou.mybatisplus: debug
jdbc.sqlonly: debug # 如果需要JDBC级别的日志
hystrix:
command:
@ -184,4 +190,4 @@ management:
include: "*"
cors:
allowed-origins: "*"
allowed-methods: "*"
allowed-methods: "*"