application/json post 전송(jQuery, spring)

javascript $.ajax({ url: "www.aaboo.com/giveMeJsonOK" , type: "post" , contentType: "application/json;" //없을 경우 Default: application/x-www-form-urlencoded , data: JSON.stringify({a:1, b:2, c:[1,2,3]}) , success: function(result){ console.log(result) } }) java import java.util.HashMap; import javax.inject.Inject; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.Controller; import com.google.gson.Gson; @Controller public class aabooTestClass { @inject private Gson gson; @RequestMapping(value="/giveMeJsonOK", method=ReqestMethod.POST) public void giveMeJsonOK(@RequestBody HashMap<String, Object> payload, @HttpServletReseponse res) … 계속 읽기 application/json post 전송(jQuery, spring)