Fight With Me!!!

导航

log4j显示hibernate sql参数的配置

#下面的两条配置非常重要,设置为trace后,将可以看到打印出sql中 ? 占位符的实际内容  

 #this is the most important config for showing parames like ?  

log4j中加入下面两条配置:

log4j.logger.org.hibernate.SQL=trace  

 log4j.logger.org.hibernate.type=trace  

posted on 2014-10-31 16:42  nickTimer  阅读(779)  评论(0编辑  收藏  举报