There was an unexpected error (type=Method Not Allowed, status=405). Request method 'GET' not suppor
在springboot中,对于请求注解@RequestMapping,如果不指定method属性,那么默认可能为GET或者POST。对于@RequestMapping("/test")这个请求,我首先进行了Form表单的POST提交,后续进行另外一个"redirect:/test"重定向之时出现这个错误。发现,该重定向操作为GET请求。然而之前已经对于“test”该值赋予了POST请求身份,因此报...
原创
2019-07-23 21:15:57 ·
15965 阅读 ·
0 评论