[MyBatis]动态输出SQL语句
来源:互联网 发布:ubuntu更新 编辑:程序博客网 时间:2024/06/05 15:55
(1)使用日志来实现SQL语句的输出。添加log4j的jar包:
(2)log4j文件的配置:
log4j.rootLogger=DEBUG,Consolelog4j.appender.Console=org.apache.log4j.ConsoleAppenderlog4j.appender.Console.layout=org.apache.log4j.PatternLayoutlog4j.appender.Console.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%nlog4j.logger.org.apache=INFO
(3)测试:
1 0
- [MyBatis]动态输出SQL语句
- mybatis输出sql语句
- mybatis动态SQL语句
- mybatis动态SQL语句
- mybatis动态SQL语句
- MyBatis 动态SQL语句
- mybatis 动态SQL语句
- mybatis 动态sql语句
- mybatis动态SQL语句
- Mybatis 动态SQL语句
- mybatis动态sql语句
- MyBatis动态SQL语句
- Mybatis动态sql语句
- mybatis动态SQL语句
- mybatis 动态SQL语句
- mybatis动态SQL语句
- MyBatis动态Sql语句
- mybatis动态SQL语句
- UIBezierPath用法
- String类基础知识
- LeetCode 34 Search for a Range(搜索范围)
- Python抓取图片小代码
- Java之查找html文件当中的所有标签
- [MyBatis]动态输出SQL语句
- SQL学习笔记(4)之外键
- UIBezierPath应用画板 及绘图
- A new node couldn't be inserted because one with the same name exists. (VERR_CFGM_NODE_EXISTS)
- 程序设计 Ulite2
- SQL学习笔记(5)之查询语句
- Java泛型简介
- 现场编程比赛普及组决赛题解
- windows下安装pillow,numpy和matplotlib