Skip to content
Advertisement

Tag: spring-jdbc

Seeing the underlying SQL in the Spring JdbcTemplate?

I am learning about the wonders of JdbcTemplate and NamedParameterJdbcTemplate. I like what I see, but is there any easy way to see the underlying SQL that it ends up executing? I’d like to see this for debug purposes (in order to for example debug the resulting SQL in an outside tool). Answer The Spring documentation says they’re logged at

Advertisement