springBoot简单学习使用;curl简单使用

来源:互联网 发布:淘宝会员中心 编辑:程序博客网 时间:2024/05/17 17:39

1   springboot入门

   http://www.jianshu.com/p/45ba074dbc81


2  curl简单使用


   get请求的两种方式

    //http://localhost:8080/api/getUserById?id=1&name=xiaohong
    //curl  http://localhost:8080/api/getUserById?id=1&name=xiaohong

   curl发送 post请求
    //curl -d "name=xiaohong&id=1" "http://localhost:8080/api/getUserByName"

   curl发送 post请求,发送数据为json 数组
    //curl -X POST -H "Content-Type: application/json" -d '{"name": "xiaohong","password": "123456"}' "http://localhost:8080/api/user/"


原创粉丝点击