package com.exfox.rest;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
@Path("UserService")
public class User {
@GET
@Path("/name/{i}")
@Produces(MediaType.TEXT_HTML)
public String userName(@PathParam("i") String i) {
return "<User><Name>" + i + "</Name></User>";
}
@GET
@Path("/age/{j}")
@Produces(MediaType.TEXT_HTML)
public String userAge(@PathParam("j") String j) {
return "<User><Name>" + j + "</Name></User>";
}
}
烟雨江南行
- 粉丝: 311
- 资源: 17
最新资源
- 基于C++的面向对象编程-简易图书馆管理系统的构建与实现
- 基于欧姆龙PLC的四轴SCARA机器人路径与轨迹规划及其平滑控制实现
- 基于JavaEE技术栈的Web应用项目实战:涵盖Spring、Hibernate与Struts2
- postgresql92-1.1-20.el6.centos.alt.x86_64.rpm
- postgresql92-build-1.1-20.el6.centos.alt.x86_64.rpm
- postgresql92-postgresql-9.2.8-1.el6.centos.alt.x86_64.rpm
- postgresql92-postgresql-contrib-9.2.8-1.el6.centos.alt.x86_64.rpm
- postgresql92-postgresql-devel-9.2.8-1.el6.centos.alt.x86_64.rpm
- postgresql92-postgresql-docs-9.2.8-1.el6.centos.alt.x86_64.rpm
- postgresql92-postgresql-plpython-9.2.8-1.el6.centos.alt.x86_64.rpm
- postgresql92-postgresql-plperl-9.2.8-1.el6.centos.alt.x86_64.rpm
- postgresql92-postgresql-pltcl-9.2.8-1.el6.centos.alt.x86_64.rpm
- postgresql92-postgresql-libs-9.2.8-1.el6.centos.alt.x86_64.rpm
- postgresql92-postgresql-test-9.2.8-1.el6.centos.alt.x86_64.rpm
- postgresql92-postgresql-upgrade-9.2.8-1.el6.centos.alt.x86_64.rpm
- postgresql92-postgresql-server-9.2.8-1.el6.centos.alt.x86_64.rpm
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈