一、项目结构

MyBatis_动态代理

 

二、代码实现

 1 import java.util.List;
 2 import java.util.Map;
 3 
 4 import com.jmu.bean.Student;
 5 
 6 public interface IStudentDao {
 7     void insertStudent(Student student);
 8     void insertStudentCacheId(Student student);// 插入后获取
 9     void deleteStudentById(int id);
10     void updateStudent(Student student);
11     List<Student> selectAllStudents();// 查询所有
12     /* Map<String,Object> selectAllStudentsMap(); */
13     Student selectStudentById(int id); // 根据id查询
14     List<Student> selectStudentsByName(String name);// 模糊查询
15 }
com.jmu.dao.IStudentDao

相关文章:

  • 2021-09-17
  • 2021-12-26
  • 2022-12-23
  • 2021-12-11
  • 2021-09-03
  • 2021-08-03
  • 2022-12-23
猜你喜欢
  • 2021-06-16
  • 2021-07-01
  • 2022-12-23
  • 2021-11-13
  • 2021-07-15
  • 2022-12-23
  • 2021-08-05
相关资源
相似解决方案