Spring JdbcTemplate打印执行的SQL语句

来源:互联网 发布:淘宝运费险多少钱 编辑:程序博客网 时间:2024/05/22 13:43

最近项目换用SpringMVC + Spring JdbcTemplate,发现执行的sql无法打印出来,查了下解决办法。

在log4j.properties增加如下配置:

og4j.logger.org.springframework.jdbc.core.JdbcTemplate=debug  

就可以了 

原创粉丝点击