I am using spring framework in my project,
Here is part of my web.xml:
SpringMvcServlet
First of all: I think you abuse the ResourceHttpRequestHandler
when you try to use it for POST requests. -- And I am not sure that every thing works correct if you made this handler to handle POST requests.
configure an instance of class org.springframework.web.servlet.resource.ResourceHttpRequestHandler
. This has the super class WebContentGenerator
and this super class has a property Set
.
So all what you need to do is:
GET
HEAD
POST
Unfortunately this requires that you configure the ResourceHttpRequestHandler
by hand instead of using
GET
HEAD
POST
I have not proved this configuration, I have just written it down from what the ResourceBeanDefintionParser
does.