RESTEasy
flycun
这个作者很懒,什么都没留下…
展开
-
RESTEasy 入门实例
[img]http://www.jboss.org/dms/resteasy/images/resteasy-banner-1180px.png[/img] [size=x-large][b]1. 在Eclipse中建立Maven工程[/b][/size] 1.1 新建Maven工程 [img]http://dl2.iteye.com/upload/attachment/0086/1...原创 2013-06-26 09:14:16 · 145 阅读 · 0 评论 -
RESTEasy @path 与正则表达式映射
[b]@path 不限于简单的路径表达式,也可以在@path中插入正则表达式,通过如下格式:[/b] [code="expression"] "{" variable-name [ ":" regular-expression ] "}" [/code] [code="java"]package com.example.rest.resteasy.service; import ja...2013-06-26 10:52:20 · 444 阅读 · 0 评论 -
RESTEasy @PathParam 与正则表达式映射
[b]不翻译了@PathParam is a parameter annotation which allows you to map variable URI path fragments into your method call.[/b] [code="java"] package com.example.rest.resteasy.service; import javax.ws...原创 2013-06-26 11:25:53 · 224 阅读 · 0 评论 -
RESTEasy +Jackson 2 进行JSON转换
[size=large][b]1. 整合RESTEasy和Jackson2 [/b][/size] 需要引入resteasy-jackson-provider.jar [size=large][b]2.一个简单的Object[/b][/size] [code="java"] package com.example.rest.resteasy.model; public class C...2013-06-27 22:04:45 · 404 阅读 · 0 评论