2023年1月5日

8.注解开发

摘要: 对于简单的数据库操作可以使用注解开发,对于复杂的数据库操作不推荐使用!! mybatis 的常用注解: @Insert:新增 @Update:更新 @Delete:删除 @Select:查询 @Result:实现结果集封装 @ResultMap:实现引用 @Results 定义的封装 @One:实现 阅读全文

posted @ 2023-01-05 23:37 人无远虑必有近忧 阅读(17) 评论(0) 推荐(0) 编辑

7.分页

摘要: 1.使用limit进行分页 核心sql语句 : select * from tableName limit startIndex,pageSize; 使用MyBatis分页 (1)接口 //分页 List<User> getUserLimit(Map<String,Integer> map); (2 阅读全文

posted @ 2023-01-05 23:26 人无远虑必有近忧 阅读(11) 评论(0) 推荐(0) 编辑

导航