jdbcTemplate的rowMapper内部类写法
String sql ="select sku,feature from product"
List<Product> products = jdbcTemplate.query(sql, (rs, rowNum) -> { Product entity = new Product(); entity.setProductSku(rs.getString(ProductDBField.SKU)); entity.setProductFeature(rs.getString(ProductDBField.FEATURE)); return entity; });
标签:getString,rs,entity,jdbcTemplate,rowMapper,写法 From: https://www.cnblogs.com/saoge/p/17169449.html