当我们在通过User的id来确定是添加操作(POST提交方式)还是修改操作(PUT提交方式)的时候

这时候form中的th:href应该是th:action,而不应该继续用th:href(post方式是可以请求成功的)

Request method 'PUT' not supported

Request method 'PUT' not supported

相关文章: