首页>代码>spring boot+mybatis+thymeleaf开发实现基于内嵌式数据库H2的增删该查入门简单实例>/yourProject/src/main/java/com/example/demo/dao/StudentMapper.java
package com.example.demo.dao; import java.util.List; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Select; import com.example.demo.entity.Student; @Mapper public interface StudentMapper { //@Select("select id,name,age from student") public List<Student> selectAll(); public void addStudent(Student stu); public Student selStudentById(int id); public void updateStudent(Student student); public void deleteStudent(int id); }

ma406805131 LV19
2024年5月11日
anopsign LV1
2022年6月30日
caozongan LV19
2022年1月10日
swordking LV1
2021年6月22日
1690356080 LV38
2021年6月15日
yongjava21 LV26
2021年2月19日
阿风啦 LV14
2021年1月24日
时代信念 LV4
2020年12月24日
hjd3983 LV10
2020年11月22日
vaterz LV25
2020年11月18日