Jersey常用注解解释 @DET、@PUT、@POST 、@DELETE等

uri : ... /resource/{id}

public voide method(@PathParam("id") String userId){}

 

uri :  .../resource?id=123

public voide method(@QueryParam("id") String userId){}

 

posted @ 2017-10-16 14:33  弓长张&木子李  阅读(800)  评论(0编辑  收藏  举报