【发布时间】:2014-08-29 13:32:04
【问题描述】:
// 我正在使用 template.setFetchSize(100);再次 n 再次每个 daoImpl。如何在属性文件中使用它并使用
JdbcTemplate template = new JdbcTemplate(dataSource);
String sql = "";
// process 100 rows at a time to minimize memory consumption
template.setFetchSize(100);
template.query(sql, new RowCallbackHandler() {
public void processRow(ResultSet rs) throws SQLException {
});
【问题讨论】:
标签: java sql spring-mvc dao jdbctemplate