Announcement Announcement Module
Collapse
No announcement yet.
JdbcTemplate Show SQL Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • JdbcTemplate Show SQL

    Hello guys!

    I'd like to know if its possible to make JdbcTemplate(with JdbcDaoSupport) show / log the SQL code that is been executed.

    Thanks.

  • #2
    you can turn on debug logging for org.springframework.jdbc

    Comment


    • #3
      Hi,

      Can you explain how exactly to do this? I did not find the answer in the blog.

      Thanks.

      Comment


      • #4
        Originally posted by Jehan99 View Post
        Hi,
        Can you explain how exactly to do this? I did not find the answer in the blog.
        Thanks.
        Add a logger for org.springframework.jdbc.core, or org.springframework.jdbc in your log configuration.

        The exact details depends on your logging framework.

        Comment

        Working...
        X