Annotation Interface RequestExcelPart


@Target(PARAMETER) @Retention(RUNTIME) public @interface RequestExcelPart
 &#064RestController
 public class ExcelController{

      &#064GetMapping("/excel)
      public List<T> excel(&#064RequestExcelPart List<T> list){
          return list;
      }

 }
 
版本:
1.2.4
作者:
ilikly
另请参阅:
  • RequestPart
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    The name of the part in the "multipart/form-data" request to bind to.
    boolean
    Whether the part is required.
    Alias for name().
  • 元素详细资料

    • value

      @AliasFor("name") String value
      Alias for name().
      默认值:
      ""
    • name

      @AliasFor("value") String name
      The name of the part in the "multipart/form-data" request to bind to.
      默认值:
      ""
    • required

      boolean required
      Whether the part is required.

      Defaults to true, leading to an exception being thrown if the part is missing in the request. Switch this to false if you prefer a null value if the part is not present in the request.

      默认值:
      true