Using PUT and DELETE methods in Spring MVC

断了今生、忘了曾经 提交于 2019-11-27 07:50:41
Guillaume

Most browsers do not support action=PUT in HTML forms. They will just send POST requests instead. The HiddenHttpMethodFilter will help you get around the problem, but you have to include a hidden field _method=PUT in your form. If you use the spring:form taglib this will be done automatically for you, but your example seems to use plain HTML.

The NoSuchBeanDefinitionException is most probably an unrelated problem.

You should change your config.

<servlet-name>/*</servlet-name>  

to

<servlet-name>[dispatch servlet name]</servlet-name> 
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!