springJDBC中NamedParameterJdbcTemplate和JdbcTempl...
public class CopyOfStudentDaoImpl implements StudentDao { private JdbcTemplate jdbcTemplate; private NamedParameterJdbcTemplate namedParameterJdbcTemplate; public void setDataSource(DataSource dataSource) { System.out.println(dataSource); jdbcTemplate = new JdbcTemplate(dataSource); namedParameterJdbcTemplate = new NamedParameterJdbcTemplate(dataSource); System.out.println(namedParameterJdbcTemplate); } public Cource StudentbyId(String id) { String sql = "select Tstudent.studentid,Tstudent.username,Tstudent.password,Tstudent.address,course.studentid,course.courseid,course.cName from course