//上传接口保存学生信息
@PutMapping("/student/save")
save(Student student){
student.getName();
student.getImgFiles();
}
//实体类
Class Student{
private String name;
private MultipartFile[] imgFiles;
}
用PupMapping直接可以接收上传的文件和属性
//上传接口保存学生信息
@PutMapping("/student/save")
save(Student student){
student.getName();
student.getImgFiles();
}
//实体类
Class Student{
private String name;
private MultipartFile[] imgFiles;
}
用PupMapping直接可以接收上传的文件和属性