0
春天启动的项目,使用JdbcTemplate
,并要显示其执行的SQL,配置如下春天开机可以显示SQL甚至使用的JdbcTemplate直接
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
但没有输出,似乎上面的配置只支持spring data jpa
,所以我想知道是否存在某种方式可以显示sql甚至直接使用JdbcTemplate
?
谢谢! '2016-03-11 18:57:00.168 DEBUG 19587 --- [restartedMain] osjdbc.core.JdbcTemplate:执行准备好的SQL语句[select mobile,max(total_amount)total_amount from user_draw_log where total_amount> 0 group by mobile order by max(total_amount)desc limit?,?;] ' – zhuguowei