错误原因: update传参时传成了(int id)应该使用类做为参数 public void update(int id); public void update(User user); 转载于:https://www.cnblogs.com/Dream--/p/7081306.html