需要两个配置即可SQL日志信息
1yml里面写如下配置
logging:
level:
root: info
cn:
wl: debug
cn:是第一层的包名
wl:是第二层的包名
2.导入日志依赖
org.apache.logging.log4j log4j2.10.0
重启一下即可实现SQL日志信息

需要两个配置即可SQL日志信息
1yml里面写如下配置
logging:
level:
root: info
cn:
wl: debug
cn:是第一层的包名
wl:是第二层的包名
2.导入日志依赖
org.apache.logging.log4j log4j2.10.0
重启一下即可实现SQL日志信息