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