spring boot mybatis打印SQL语句
时间:2021-07-01 10:21:17
帮助过:25人阅读
logger name="com.ibatis" level="DEBUG" />
<logger name="com.ibatis.common.jdbc.SimpleDataSource" level="DEBUG" />
<logger name="com.ibatis.common.jdbc.ScriptRunner" level="DEBUG" />
<logger name="com.ibatis.sqlmap.engine.impl.SqlMapClientDelegate" level="DEBUG" />
<logger name="java.sql.Connection" level="DEBUG" />
<logger name="java.sql.Statement" level="DEBUG" />
<logger name="java.sql.PreparedStatement" level="DEBUG" />
<logger name="java.sql.ResultSet" level="DEBUG" />
<logger name="你的dao层包名" level="DEBUG" />
在mybatis-config.xml中开启:
<settings>
<setting name="logImpl" value="STDOUT_LOGGING"/>
</settings>
spring boot mybatis打印SQL语句
标签:sim back simple red run EDA ring sql语句 map