springboot使用jdbcTemplate案例
1 创建实体类 public class Student { private Integer stuid; private String stuname; public Integer getStuid() { return stuid; } public void setStuid(Integer stuid) { this.stuid = stuid; } public String getStuname() { return stuname; } public void setStuname(String stuname) { this.stuname = stuname; } public Student(Integer stuid, String stuname) { this.stuid = stuid; this.stuname = stuname; } public Student(){} public Student(String stuname) { this.stuname = stuname; } } 2 创建Dao层(Dao层接口和实现类合并) @Repository public class StudentDao { @Resource private JdbcTemplate jdbcTemplate; //查询所有学生信息 public List