spring boot 特殊案例
作者:互联网
一、controller层参数接收事宜:
PUT操作:
1.application/x-www-form-urlencoded类型,无注解,无法接收参数;
2.application/x-www-form-urlencoded类型,@RequestBody,无法接收参数;
3.application/json类型,@RequestBody注解,可以接收参数;
POST操作:
1.application/x-www-form-urlencoded类型,无注解,可以接收参数;
2.application/x-www-form-urlencoded类型,@RequestBody,无法接收参数;
3.application/json类型,@RequestBody注解,可以接收参数;
标签:www,form,案例,spring,boot,RequestBody,application,参数,接收 来源: https://www.cnblogs.com/fbli/p/16575258.html