最近项目换用SpringMVC + Spring JdbcTemplate,发现执行的sql无法打印出来,查了下解决办法。
在log4j.properties增加如下配置:
og4j.logger.org.springframework.jdbc.core.JdbcTemplate=debug
就可以了
最近项目换用SpringMVC + Spring JdbcTemplate,发现执行的sql无法打印出来,查了下解决办法。
在log4j.properties增加如下配置:
og4j.logger.org.springframework.jdbc.core.JdbcTemplate=debug
就可以了