spring restful で @Requestparam @RequestBody を一緒に使用する方法
@RequestMapping(method = RequestMethod.POST, value = "/upate")
@ResponseBody
public ModelAndView availableCheck(
@RequestParam("key") String key, @RequestBody User user)
throws Exception {
//handle
//
}
一意のキーでユーザーを更新したいので、リクエスト キー パラメータと新しいユーザー json オブジェクトが必要です。よろしくお願いします!