SpringBoot项目(16)—整合MyBatis实现删除用户 1.在service接口中添加方法 void dropUsersById(Integer id); 2.在service接口实现类中添加实现方法 @Override public void dropUsersById(Integer id) { this.usersMapper.deleteByPrimaryKey