List<LiveRoom> liveRooms = slaveTemplate.query(sql_query_today_live, param, LiveRoom.class);
直接这样写会报错,
改成下面这样就OK了
List<LiveRoom> liveRooms = slaveTemplate.query(sql_query_today_live, param, new BeanPropertyRowMapper<LiveRoom>(LiveRoom.class));
List<LiveRoom> liveRooms = slaveTemplate.query(sql_query_today_live, param, LiveRoom.class);
直接这样写会报错,
改成下面这样就OK了
List<LiveRoom> liveRooms = slaveTemplate.query(sql_query_today_live, param, new BeanPropertyRowMapper<LiveRoom>(LiveRoom.class));
本文标题:Spring JDBC 报错 expected 1, a
本文链接:https://www.haomeiwen.com/subject/foqfdftx.html
网友评论