spring jdbctemplate 的的批量查询。
需求:
List<Student> students = new ArrayList<Student>();
students.add(s1);//student1,
students.add(s2);//student2,
students.add(s3);//student3,
students.add(s4);//student4,
student的属性之一是id。
我要通过此id,来查询student的score,(student中没有score属性)现在假设score字段在course表中。
如何使用spring jdbctemplate 实现批量查询呢?