我有一份学生名单。我想做编辑。更改名称、姓氏和头像。我写了代码,但它不起作用,数据没有被编辑。你可以看到为什么它对我不起作用。没有错误,它只是没有改变任何东西。编辑后姓名和头像不变
学生服务
public interface StudentService {
List<Student> getAllStudents();
Student getStudentById(Long id);
boolean saveStudent(Student student);
boolean deleteStudentById(Long id);
File loadAvatarByFileName(String filename);
File saveAvatarImage(MultipartFile avatarImage) throws IOException;
Student updateStudent(String name, String surname, MultipartFile avatar, Student targetStudent) throws IOException;
}
HUH函数
相关分类