如果你还不是很了解restful,或者认为restful只是一种规范不具有实际意义,推荐一篇osc两年前的文章:RESTful API 设计最佳实践 和 Infoq的一篇极其理论的文章 理解本真的REST架构风格 虽然有点老,介绍的也很简单,大家权当了解,restful的更多好处,还请google
拥有jfinal/activejdbc一样的activerecord的简洁设计,使用更简单的restful框架
restful的api设计,是作为restful的服务端最佳选择(使用场景:客户端和服务端解藕,用于对静态的html客户端(mvvm等),ios,andriod等提供服务端的api接口)
Java开发指南:Java style guide
Api设计指南:Http api design
Resty例子:resty-demo
其他开发者贡献的插件:Beetl扩展(大鹏)
maven使用方式:
- 添加maven snapshots仓库
<repositories>
<repository>
<id>oss-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
- 添加依赖包
<dependency>
<groupId>cn.dreampie</groupId>
<artifactId>resty-route</artifactId>
<version>2.0-SNAPSHOT</version>
</dependency>
提醒:推荐idea作为开发ide,使用分模块的多module开发
License Apache License V2