私は初めてSpringです。Google での以前の検索から、 @RequestBodyを使用してJSONデータをに送信でき、コントローラーでデータを取得できることがわかりました。Spring Controller
しかし、 を使用する@RequestBodyと、コントローラーへのリクエストが許可されません。  
function sendJSON(){
    var jsonData = {"name":"XXX","age":"20","hobby":"TV"};
    /alert("json Data : \n\n\n"+jsonData);
    $.ajax({
        type: 'POST',
        dataType: 'json',
        url: contexPath + "/sender.html",
        //dataType: "html",
        //contentType: "application/x-www-form-urlencoded; charset=utf-8",
        contentType: "application/json"
        data : JSON.stringify(jsonData),
        success: function(data, textStatus ){
            alert("success");
            $("#result").html(data.name+"data.age+" "+data.hobby);  
        },
        error: function(xhr, textStatus, errorThrown){
            //alert('request failed'+errorThrown);
        }
    });
}
私のcontroller意志は、
@RequestMapping(value = "sender.html", method=RequestMethod.POST)
public @ResponseBody Person sendMessage(@RequestBody Persons person){
    System.out.println("Test..........");
    System.out.println(person.getName()+ " "+person.getAge()+" "+person.getHobby()+"\n");
    return persons; 
}
しかし、私のリクエストはブロックされます。
に一致するに正しい を送信していjson dataますか?controllerjava bean
私たちのスタックユーザーが私を助けてくれることを願っています.