The origin server did not find a current representation for the target resource or is not willing to disclose that one exists

前端 未结 13 1527
野趣味
野趣味 2020-12-03 00:02

web.xml

    
     

        
13条回答
  •  佛祖请我去吃肉
    2020-12-03 00:38

    Was following one of training with Spring webmvc 4.2.3, while I'm using Spring webmvc 5.2.3 they suggested to create a form

    
    

    that was causing the "disclose" error.

    Altered as below to make it work. Looks like method above was the culprit.

    
    

    in fact, exploring further, method="post" in form annotation would work if properly declared:

    @RequestMapping(value="/accountCreated", method=RequestMethod.POST)
    

提交回复
热议问题