SQL到对象数组

       Entity[] entitys = jdbcTemplate.query(sql,
               new BeanPropertyRowMapper<>(Entity.class)).toArray(new Entity[0]);

猜你喜欢

转载自blog.csdn.net/YYecust/article/details/89884966