我使用SpringMVC来添加和更新表单。不知道为什么在提交BindingResult (表单验证、输入错误等)时不能重定向回相同的表单以显示错误消息。有任何错误。当使用PUT方法(更新事物),而不是POST方法(添加事物)时,会发生这种情况。请任何人建议我应该做什么。提前谢谢。我收到的浏览器出错:
HTTP Status 405 - HTTP method PUT is not supported by this
我有一个带有webapi控制器的MVC应用程序。 public class FilesController : ApiController
通过对的研究,认为WebApi的[Authorize]属性实际上是System.Web.Http.AuthorizeAttribute,而对于mvc控制器则是System.Web.Mvc.AuthorizeAttribute。如果用户是在mvc