需要继承RowMapper接口,实现.set赋值操作
考虑通用性,可以写一个通用的赋值方法
可以参考:https://blog.csdn.net/chw0629/article/details/80607371 或其他
上面是spring jdbc template或者dbutils
也可以使用BeanUtils做操作
需要继承RowMapper接口,实现.set赋值操作
考虑通用性,可以写一个通用的赋值方法
可以参考:https://blog.csdn.net/chw0629/article/details/80607371 或其他
上面是spring jdbc template或者dbutils
也可以使用BeanUtils做操作