Annotation Interface RequestExcelPart
@RestController
public class ExcelController{
@GetMapping("/excel)
public List<T> excel(@RequestExcelPart List<T> list){
return list;
}
}
- 版本:
- 1.2.4
- 作者:
- ilikly
- 另请参阅:
-
RequestPart
-
可选元素概要
可选元素
-
元素详细资料
-
value
Alias forname().- 默认值:
- ""
-
name
The name of the part in the"multipart/form-data"request to bind to.- 默认值:
- ""
-
required
boolean requiredWhether the part is required.Defaults to
true, leading to an exception being thrown if the part is missing in the request. Switch this tofalseif you prefer anullvalue if the part is not present in the request.- 默认值:
- true
-