spring JdbcTemplate学习

spring中的JdbcTemplate使用:

第一种自己写实现类,实现RowMapper<T>中的方法,实现对查询结果集的封装,ranhouspring会自动将结果集添加到集合中,

 

 

第二种,使用spring中自带的方法,参数是需要封装的类的字节码