当前位置:网站首页>mybati sql 语句打印
mybati sql 语句打印
2022-07-01 02:53:00 【thoughtCodes】
1:首先将ibatis log4j运行级别调到DEBUG可以在控制台打印出ibatis运行的sql语句
###显示SQL语句部分
log4j.logger.com.ibatis=DEBUG
log4j.logger.com.ibatis.common.jdbc.SimpleDataSource=DEBUG
log4j.logger.com.ibatis.common.jdbc.ScriptRunner=DEBUG
log4j.logger.com.ibatis.sqlmap.engine.impl.SqlMapClientDelegate=DEBUG
log4j.logger.Java.sql.Connection=DEBUG
log4j.logger.java.sql.Statement=DEBUG
log4j.logger.java.sql.PreparedStatement=DEBUG
2.mybatis 配置:
<?xml version="1.0" encoding="UTF-8"?>mybatis:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
边栏推荐
猜你喜欢

Applet custom top navigation bar, uni app wechat applet custom top navigation bar

小程序自定义顶部导航栏,uni-app微信小程序自定义顶部导航栏

Share Creators萌芽人才培养计划来了!

Prototype and prototype chain in JS

Communication protocol -- Classification and characteristics Introduction

Restcloud ETl数据通过时间戳实现增量数据同步

【机器学习】向量化计算 -- 机器学习路上必经路

Youmeng (a good helper for real-time monitoring of software exceptions: crash) access tutorial (the easiest tutorial for Xiaobai with some foundation)

在unity中使用jieba分词的方法

Complete training and verification of a neural network based on pytorch
随机推荐
【小程序项目开发 -- 京东商城】uni-app 商品分类页面(下)
php批量excel转word
Xception学习笔记
PTA 1016
js 找出两个数组中的重复元素
Viewing JVM parameters
Pulsar的Proxy支持和SNI路由
Poj-3486-computers[dynamic planning]
Pulsar geo replication/ disaster recovery / regional replication
基于Pytorch完整的训练一个神经网络并进行验证
SSH configuration password free login error: /usr/bin/ssh copy ID: error: no identities found solution
map数组函数
[applet project development -- Jingdong Mall] classified navigation area of uni app
Thread Detach
【小程序项目开发--京东商城】uni-app之自定义搜索组件(上)
Mouse over effect V
Pulsar theme compression
[applet project development -- JD mall] uni app commodity classification page (Part 2)
彻底解决Lost connection to MySQL server at ‘reading initial communication packet
Prototype and prototype chain in JS