1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| 1-Rest -概念 -Representational State Transfer缩写 -一种网络资源的访问风格,定义了网络资源的访问方式 -传统风格: http://localhost/user/get?id=1 -Rest风格: http://localhost/user/1 2-Restful是按照Rest风格访问网络资源 3-优点 -隐藏资源的访问行为,通过地址无法得知做的是何种操作 -书写简化 2-Rest行为约定 -GET(查询): http://localhost/user/1 GET -POST(保存): http://localhost/user POST -PUT(更新): http://localhost/user PUT -DELETE(删除): http://localhost/user DELETE
3-SpringMVC支持Restful:请求路径访问配置发生变化
|