Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Architecture & Framework  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Spring Data REST 1.0候选版发布,Spring MVC的REST扩展
阿熊

阿熊

元老


发贴: 5644
积分: 454
于 2012-07-02 12:16 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Spring Data REST是Spring Data项目的一部分,通过它可以轻松将基于JPA的库作为RESTful末端。
Spring Data REST项目的目标是通过使用简单的HTTP REST语义,为实现CRUD(Create Read Update Delete,增查改删)操作到你的JPA库管理的实体中提供一个坚实的基础。

其主要功能如下:

•使用POST创建新的实体(支持自动生成或预分配的ID)
•使用PUT更新现有的实体
•使用DELETE删除实体
•使用POST、PUT、DELETE管理实体关系
•使用GET探索服务,并获取或列出可用的实体
•如果JPA实体定义了一个@Version,将成为一个ETag。在下一次请求中发送该值,以确定实体是否被修改。
•使用GET通过库查询方法搜索实体
•验证JSR-303实体或Spring验证器beans
•通过捕获应用程序事件,来扩展REST输出功能
•使用注解配置路径和rel值
•页面大型结果集(默认每个页面20个记录)
•排序结果
开发者可以轻松在现有的Spring MVC应用程序中集成Spring Data REST,只需在Spring MVC配置中添加一个bean,如下:

<bean class="org.springframework.data.rest.webmvc.RepositoryRestMvcConfiguration"/>

详细信息:http://www.springsource.org/node/3578

下载地址:https://github.com/SpringSource/spring-data-rest




话题树型展开
人气 标题 作者 字数 发贴时间
7171 Spring Data REST 1.0候选版发布,Spring MVC的REST扩展 阿熊 836 2012-07-02 12:16
6901 Re:Spring Data REST 1.0候选版发布,Spring MVC的REST扩展 binge 77 2012-09-20 01:15

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923