The request sent by the client was syntactically incorrect – Spring mvc

來源:互聯網
上載者:User

1. Please use some debug tool(for example in Chrome use F12->Network tab, or use Firefox Firebug to see the request formed from the browser) In this case you are putting form parameters into the view name (even adding some strange space symbol in quotes after
the parameters) in your client js - it does not seem to be right.

I suggest you to make a separate controller method that processes your form.

In this case your form is incorrectly serialized(actually the correct html form serialization/parameter passing is regulated by several RFC).

2. 抓包分析確實很重要,可這比對工作也很困難。

3。對資料類型判斷

用Spring MVC提交一個表單時報400錯誤:The request sent by the client was syntactically incorrect ().

原來是其中一個日期欄位為空白所致。代碼如下:

4。

The request sent by the client was syntactically incorrect 說的意思是:由用戶端發送的請求是文法上是不正確的。但還是不明白哪裡出了問題,

我的URLhttp://localhost:8080/mmsys/field/list.do?date=2015-06-07,真看不出那個參數出錯了,實在沒辦法我把spring記錄層級調整到debug層級

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.