摘要: # 配置slq打印日志 mybatis-plus: configuration: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl 作者: java1234_小锋 出处:https://www.cnblogs.com/java688/p/13 阅读全文
posted @ 2020-08-18 15:44 java锋哥 阅读(1191) 评论(0) 推荐(0) 编辑
摘要: mybatis-plus提供了4个删除方法: /** * 根据 ID 删除 * * @param id 主键ID */ int deleteById(Serializable id); /** * 根据 columnMap 条件,删除记录 * * @param columnMap 表字段 map 对 阅读全文
posted @ 2020-08-18 15:29 java锋哥 阅读(7403) 评论(0) 推荐(0) 编辑
摘要: mybatis-plus框架提供了两个更新方法: /** * 根据 ID 修改 * * @param entity 实体对象 */ int updateById(@Param(Constants.ENTITY) T entity); /** * 根据 whereEntity 条件,更新记录 * * 阅读全文
posted @ 2020-08-18 15:26 java锋哥 阅读(6575) 评论(0) 推荐(0) 编辑