In the SPRINGMVC framework, when you use the POST request service and then request a successful move to a static file, such as a Web page such as html,htm. The page appears 405 request method Post not supported error, as long as the following code is included in the spring configuration file:
<Beanclass= "Org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"> < Propertyname= "UrlMap"> <Map> <entryKey= "/pages/*.html"value= "Myresourcehandler" /> </Map> </ Property> < Propertyname= "Order"value= "100000" /></Bean> <BeanID= "Myresourcehandler"name= "Myresourcehandler"class= "Org.springframework.web.servlet.resource.ResourceHttpRequestHandler"> < Propertyname= "Locations"value= "/pages/*.html" /> < Propertyname= "Supportedmethods"> <List> <value>GET</value> <value>HEAD</value> <value>POST</value> </List> </ Property> </Bean>
SPRINGMVC Framework appears 405 request method Post not supported solution