Hi
We are using the Spring framework, for our website.
We noticed the "Request method 'HEAD' not supported" in the log and traced down to the source code to see, that only GET and POST method are supported.
How do we get rid of the error?
Anyway to awoid HEAD request or even better make support for them?
Supported methods at: org.springframework.web.servlet.support.WebContent Generator line 76-77
Stack trace:
Servlet.service() for servlet web threw exception
org.springframework.web.servlet.support.RequestMet hodNotSupportedException: Request method 'HEAD' not supported
at org.springframework.web.servlet.support.WebContent Generator.checkAndPrepare(WebContentGenerator.java :199)
at org.springframework.web.servlet.support.WebContent Generator.checkAndPrepare(WebContentGenerator.java :178)
at org.springframework.web.servlet.mvc.AbstractContro ller.handleRequest(AbstractController.java:116)
at org.springframework.web.servlet.mvc.SimpleControll erHandlerAdapter.handle(SimpleControllerHandlerAda pter.java:44)
at org.springframework.web.servlet.DispatcherServlet. doService(DispatcherServlet.java:532)
at org.springframework.web.servlet.FrameworkServlet.s erviceWrapper(FrameworkServlet.java:366)
at org.springframework.web.servlet.FrameworkServlet.d oHead(FrameworkServlet.java:353)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:714)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:810)


Reply With Quote