Spring JDBC 报错 expected 1, actual 8:Incorrect column count: expected 1, actual 8
ListliveRooms=slaveTemplate.query(sql_query_today_live,param,LiveRoom.class);直接这样写会报错,改成下面这样就OK了ListliveRooms=slaveTemplate.query(sql_query_today_live,param,newBeanPropertyRowMapper(LiveRoom.class));