Spring JDBC-防止记录-信息:添加了名为#update-count-1的默认SqlReturnUpdateCount参数 [英] Spring JDBC - prevent logging - INFO: Added default SqlReturnUpdateCount parameter named #update-count-1
本文介绍了Spring JDBC-防止记录-信息:添加了名为#update-count-1的默认SqlReturnUpdateCount参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的独立应用程序使用Spring JDBC.
My standalone application uses Spring JDBC.
我在System.out中看到很多以下语句
I see a lot of the following statements in System.out
Mar 28, 2013 6:42:12 PM org.springframework.jdbc.core.JdbcTemplate extractReturnedResults
INFO: Added default SqlReturnUpdateCount parameter named #update-count-1
如何防止这些日志?
推荐答案
我通过跳过未声明的结果来解决这个问题,无论如何我都不需要
I got around this by skipping the undeclared results, which I don't need anyway
JdbcTemplate jt = new JdbcTemplate(dataSource);
jt.setSkipUndeclaredResults(true);
这篇关于Spring JDBC-防止记录-信息:添加了名为#update-count-1的默认SqlReturnUpdateCount参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文