Mybatis-Plus控制台打印日志

一、application.properties文件 mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl 二、application.yml文件 ...

Thu Oct 28 04:00:00 CST 2021 0 1458
MyBatis配置:在控制台打印SQL语句

1.在spring-mybatis.xml配置语句 注意:value=”classpath:mybatis-config.xml”这个文件如果之前没有,是需要新建的 2.新建mybatis-config.配置文件代码: 这样在后台测试的时候就能直接在控制台打印SQL语句 ...

Tue Oct 23 23:00:00 CST 2018 0 5497
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM