yml:
mybatis-plus:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
properties
logging.level.${com.test.xsj}=debug
上图中${com.test.xsj} 为自己的包。
配置好后测试就好了
2022-06-17 14:06:53.118 DEBUG 6984 --- [ main] c.t.xsj.mapper.AccountMapper.selectList : ==> Preparing: SELECT account_id,account_name,cashier_desk_domain,is_valid,create_user,create_time,update_user,update_time FROM account ORDER BY account_id ASC
2022-06-17 14:06:53.151 DEBUG 6984 --- [ main] c.t.xsj.mapper.AccountMapper.selectList : ==> Parameters:
2022-06-17 14:06:53.199 DEBUG 6984 --- [ main] c.t.xsj.mapper.AccountMapper.selectList : <== Total: 16