0

I'm writing a plain spring jdbc application using spring boot after a long time without using jpa or hibernate or any other ORM solution. I have need to print the runtime SQL for debugging purposes. I researched a little bit but could not find anything. I know in a jpa/hibernate application we can say following in application.properties

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

But not sure what is the name name of property in spring jdbc applications. Any help is appreciated.

ak123
  • 285
  • 2
  • 5
  • 15
  • It's a matter of a logger setting for `org.springframework.jdbc.core.JdbcTemplate`. [See log4j for example here](http://stackoverflow.com/questions/1932208/seeing-the-underlying-sql-in-the-spring-jdbctemplate) – Ori Dar Jul 18 '16 at 18:27
  • I used the following config in logback xml file: `` – reallol Jul 21 '16 at 11:52

0 Answers0