handler method 参数绑定常用的注解 分类

handler method 参数绑定常用的注解,我们根据他们处理的Request的不同内容部分分为四类:(主要讲解常用类型)A、处理requet uri 部分(这里指uri template中variable,不含queryString部分)的注解: @PathVariable;B、处理request header部分的注解: @RequestHeader, @CookieValue;C、处理request body部分的注解:@RequestParam, @RequestBody;D、处理attribute类型是注解: @SessionAttributes, @ModelAttribute;

猜你喜欢

转载自blog.csdn.net/fs1290/article/details/80314355
今日推荐