关于Axios请求JavaWeb(SpringMVC)参数接收问题
data1:{id:9}
test2 = ()=>{
axios.defaults.baseURL = 'http://localhost:8080';
axios.post("/test2",qs.stringify(this.state.data1))
.then((res)=>{
console.log(res)
})
.catch((e)=>{
...
原创
2021-04-28 13:26:33 ·
432 阅读 ·
0 评论