Spring JdbcTemplate打印执行的SQL语句

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

在log4j.properties增加如下配置:

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

就可以了 

猜你喜欢

转载自blog.csdn.net/zhu_19930414/article/details/78856040