获得PrepareStatement 的最终执行语句

 

方法一:http://www.blogjava.net/crazycy/archive/2006/07/22/59581.html

方法二:使用p6spy进行SQL监控

    下载地址:http://sourceforge.net/projects/p6spy/files/p6spy/1.3/p6spy-install.jar/download

     介绍:http://www.ibm.com/developerworks/cn/java/j-lo-p6spy/index.html

     http://www.blogjava.net/hexuzhong/archive/2006/01/28/29345.html

    Spring: http://lxy19791111.iteye.com/blog/131293

    Hibernate: http://maomao.blog.51cto.com/115985/28789

你可能感兴趣的:(JAVA应用)