I have a web service as below. Any body please tell me what is the Url to invoke the getUserDetails();
....://localhost:8080/Jersey-Rest/rest/hellow / I want the url after hellow/....
@Path("/hellow")
public class HelloWorldService {
@GET
@Path("/{name1}/{name2}/")
public Response getUserDetails(@PathParam("name1") String name1,@PathParam("name2") String name2){
String output = "User info .. "+name1+name2 ;
return Response.status(200).entity(output).build();
}
thank you
例如....:// localhost:8080 / Jersey-Rest / rest / hellow / joe / bob /
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.