MyBatis学习总结(23)——Mybatis打印Sql语句配置
一、现在spring-mybatis.xml中配置:<property name="configLocation" value="classpath:mybatis/mybatis-config.xml" /> 如下图
二、mybatis-config.xml中配置settings如下图
三、总结:当然打印mybatis的日志方式比较多,SLF4J | LOG4J | LOG4J2 | JDK_LOGGING | COMMONS_LOGGING | STDOUT_LOGGING | NO_LOGGING,可以根据自己的需要进行配置