原文地址:http://only81.iteye.com/blog/1689537 This section creates a CRUD (Create, Read, Update, Delete) restful web service. It will allow to maintain a list of todos in your web application via HTTP calls. 本章,将调用restful的get,post,delete等相关的操作 首先创建一个bean…
原文地址:http://only81.iteye.com/blog/1689537 本文描述,获取XML或json格式数据 首先,创建一个bean,比如Todo(JAXB自动将bean文件,转换成xml或者json,需要添加@XmlRootElement) package sample.hello.resources.bean; import javax.xml.bind.annotation.XmlRootElement; @XmlRootElement public class Todo {…