spring JdbcTemplate学习

spring中的JdbcTemplate使用:

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

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

原文地址:https://www.cnblogs.com/guosai1500581464/p/13412290.html