springboot后台接收文件信息

前端<input type="file" name="headerImg" >  <input type="file" multiple name="photos">

后端  @RequestPart(“headerImg”) MutipartFile headerImg,

    @RequestPart(“photos”)MultipartFile[] photos

原文地址:https://www.cnblogs.com/chaogehahaha/p/15770141.html