400 Bad request error Ajax对Spring控制器的调用

时间:2015-10-27 13:43:15

标签: jquery ajax spring

当我发布获取错误请求的Ajax请求时:

$.ajax({
        type : "POST",
        url : "jsp/stdregistration.do",
        data : "stdFirstName=" + stdFirstName + "&stdMiddleName=" + stdMiddleName + "&stdLastName=" + stdLastName +"&yoa=" + yoa + "&stdcode=" + stdcode + "&aadharno=" + aadharno +"&palceofbirth=" + palceofbirth + "&dob=" + dob + "&doa=" + doa +"&mothertoung=" + mothertoung + "&otherlang1=" + otherlang1 + "&otherlang2=" + otherlang2,

但如果我用较少的参数发布相同的请求,我没有收到错误 例如:

 $.ajax({
        type : "POST",
        url : "jsp/stdregistration.do",
        data : "stdFirstName=" + stdFirstName + "&stdMiddleName=" + stdMiddleName + "&stdLastName=" + stdLastName + "&mothertoung=" + mothertoung + "&otherlang1=" + otherlang1 + "&otherlang2=" + otherlang2,

请帮我解决确切的问题。

0 个答案:

没有答案