當前位置:
首頁 >
前端技术
> javascript
>内容正文
javascript
SpringBoot RequestBody ajax提交对象
生活随笔
收集整理的這篇文章主要介紹了
SpringBoot RequestBody ajax提交对象
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
前端實現:
var student = {"name":1,"age":2,"score":3 }; $.ajax({ url:"student/test/delStudentByPrimaryKey.action",contentType:"application/json;charset=UTF-8",type:'POST',dataType:'json',//json 返回值類型data: JSON.stringify(student),//轉化為json字符串success:function(data){} });后端實現:
@RequestMapping(value = "/delStudentByPrimaryKey") void deleteByPrimaryKey(@RequestBody Student student){System.out.println(student); }?
轉載于:https://www.cnblogs.com/chenzheng8975/p/9662959.html
總結
以上是生活随笔為你收集整理的SpringBoot RequestBody ajax提交对象的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 2018acm-icpc宁夏邀请赛后记
- 下一篇: 在VMware中装Win server