spring boot could show sql even use JdbcTemplate directly

Viewed 13579

spring boot project, used JdbcTemplate, and want to show sql which is executed, the configuration is as below

spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true

but nothing output, it seems above configuration only support spring data jpa, So I'd like to know does exist some manner could show sql even used JdbcTemplate directly?

1 Answers
Related