配置方式
application.yml配置方式
#mybatis-plus配置控制台打印完整带参数SQL语句
mybatis-plus:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
application.properties配置方式
#mybatis-plus配置控制台打印完整带参数SQL语句
mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
打印效果
Opening JDBC Connection
==> Preparing: select RES.* from ACT_RU_TIMER_JOB RES where DUEDATE_ <= ? and LOCK_OWNER_ is null LIMIT ? OFFSET ?
==> Parameters: 2020-04-21 20:28:18.555(Timestamp), 1(Integer), 0(Integer)
<== Total: 0
Closing JDBC Connection [Transaction-aware proxy for target Connection [com.alibaba.druid.proxy.jdbc.ConnectionProxyImpl@4d8e6daa]]
网友评论