Spring MVC Request method 'POST' not supported[已解決]

1.ajaxForm表單提交formdate時,提交方式爲post,包話文本和圖片信息 2.Controller層注意要加上metho=RequestMethod.POST 3.切記在html頁面上的<form id=""  enctycode=""> method要去掉,不然就報錯,RequestMapping裏的value="/saveAllRoom"前面的"/"可要可不要。
相關文章
相關標籤/搜索