springboot如何接收Vue 的post提交请求
最近在研究vue项目,通过vue向springboot后台提交数据,后台却接收不到数据,解决办法:上代码
第一步:首先看前台vue的提交数据代码,
(提交的数据包含文本编辑器内容,如果文本内容太多提交不过去,可以后台设置请求头大小 server.max-http-header-size=102400)
var data = {titles: this.form.titles,contents:editor.txt.html(),dates:this.formatDate(this.form.date
原创
2021-02-04 09:54:07 ·
3219 阅读 ·
3 评论