使用VUE时出现的org.springframework.web.HttpRequestMethodNotSupportedException: Request method ‘POST‘ not s

异常如下

使用form表单提交时出现的这个异常:
使用VUE时出现的org.springframework.web.HttpRequestMethodNotSupportedException: Request method ‘POST‘ not s
HTML5前端代码如下:
使用VUE时出现的org.springframework.web.HttpRequestMethodNotSupportedException: Request method ‘POST‘ not s
使用VUE时出现的org.springframework.web.HttpRequestMethodNotSupportedException: Request method ‘POST‘ not s

Controller层代码如下:

使用VUE时出现的org.springframework.web.HttpRequestMethodNotSupportedException: Request method ‘POST‘ not s提交时使用的是axios.post方法
使用VUE时出现的org.springframework.web.HttpRequestMethodNotSupportedException: Request method ‘POST‘ not s
表单的method提交方式也是POST
使用VUE时出现的org.springframework.web.HttpRequestMethodNotSupportedException: Request method ‘POST‘ not sController层也是POST接收
使用VUE时出现的org.springframework.web.HttpRequestMethodNotSupportedException: Request method ‘POST‘ not s在网上搜了很多的解决方法比如在application.properties中加上spring.mvc.hiddenmethod.filter.enabled=true或者在Axios.post方法中设置application/x-www-form-urlencoded都是没有解决

后来发现只要把form标签的method去掉就好
使用VUE时出现的org.springframework.web.HttpRequestMethodNotSupportedException: Request method ‘POST‘ not s

直接运行可以正常进入界面
使用VUE时出现的org.springframework.web.HttpRequestMethodNotSupportedException: Request method ‘POST‘ not s