您的位置: 首页 > 文章 > 使用VUE时出现的org.springframework.web.HttpRequestMethodNotSupportedException: Request method ‘POST‘ not s 使用VUE时出现的org.springframework.web.HttpRequestMethodNotSupportedException: Request method ‘POST‘ not s 分类: 文章 • 2023-03-24 17:36:08 异常如下 使用form表单提交时出现的这个异常: HTML5前端代码如下: Controller层代码如下: 提交时使用的是axios.post方法 表单的method提交方式也是POSTController层也是POST接收在网上搜了很多的解决方法比如在application.properties中加上spring.mvc.hiddenmethod.filter.enabled=true或者在Axios.post方法中设置application/x-www-form-urlencoded都是没有解决 后来发现只要把form标签的method去掉就好 直接运行可以正常进入界面