hibernate show query execution time

后端 未结 3 1389
天涯浪人
天涯浪人 2020-12-10 00:47

I was looking for setup hibernate or log4j to show me, how long are executed queries in hibernate, which are invoked by hql.

Till now i didn\'t found anything intere

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-10 01:30

    To log queries with its execution time to log file you may try Craftsman Spy JDBC Driver which do exactly same things and has simple integration with Spring.

    Another way is to using Spring Insight which shows JDBC/Hibernate calls and many more details.

    Related links:

    • How to install Spring Insight
    • How to setup filters

提交回复
热议问题