Http Status 500:Request processing failed異常解決辦法

今天,我在寫spring mvc文件上傳與下載的例子時,遇到了如下問題: 經過一番奮戰,終於直到問題出在哪裏了。原來,我沒有設置button的請求方式。在標籤中,將method設爲post請求方式,並在Controller類中將@RequestMapping中的method設爲:method = RequestMethod.POST後,就解決了。 原來: index.jsp: <body>
相關文章
相關標籤/搜索