1. 程式人生 > >SpringBoot 以對象的形式接口form表單提交

SpringBoot 以對象的形式接口form表單提交

ring form表單 方法 interface nbsp spa 真的 class pri

當有需求遇到使用form表單提交的,但是參數又超級多的時候,真的是很頭疼,以下的方法可以使用對象接口form表單提交的參數

一、自定義註解

@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface FormBody {
}

二、未完待續。。。

SpringBoot 以對象的形式接口form表單提交