这是数据库的查询结果
这是执行后的结果
不明白为什么没有正确封装成User
这是User的属性
这是执行的代码
ApplicationContext app = new ClassPathXmlApplicationContext("spring-mvc.xml");
JdbcTemplate jt = (JdbcTemplate)app.getBean("jdbcTemplate");
List<User> query = jt.query("select * from users", new BeanPropertyRowMapper<User>(User.class));
System.out.println(query);
get和set方法加了么?
uname upassword的set get方法有写吗