摘要:
根据id更新 User user = new User(); user.setUserId(1); user.setAge(29); userMapper.updateById(user); 条件构造器作为参数进行更新 //把名字为张三的用户年龄更新为18,其他属性不变 UpdateWrapper< 阅读全文
摘要:
出现问题: 写了个代码,需要使用枚举的来判断对于的事务处理 然而这里的编译器报错:constant expression required switch 的case中,必须要用常量,想了一下,枚举里面的code是可以相同的 实在不想在 类里面 定义 public static final int c 阅读全文