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/"