背景
log4jdbc打印到log文件中是多行sql,非常不便于查询。使用p6spy就没有这个问题。
使用p6spy
记录
留下gav。
<log4jdbc.version>1.16</log4jdbc.version>
<dependency>
<groupId>org.bgee.log4jdbc-log4j2</groupId>
<artifactId>log4jdbc-log4j2-jdbc4.1</artifactId>
<version>${log4jdbc.version}</version>
</dependency> <p6spy.version>3.9.1</p6spy.version>
<dependency>
<groupId>p6spy</groupId>
<artifactId>p6spy</artifactId>
<version>${p6spy.version}</version>
</dependency>作者:张三 创建时间:2026-01-12 09:55
最后编辑:张三 更新时间:2026-01-14 17:39
最后编辑:张三 更新时间:2026-01-14 17:39