Код: Выделить всё
@Path("/message")
public class MessageRestService {
@GET
@Path("/{param}")
public Response getMessage(@PathParam("param")String msg){
String result = "Hello World "+msg;
return Response.status(200).entity(result).build();
}
}
Код: Выделить всё
resteasy.scan
true
resteasy.servlet.mapping.prefix
/rest
org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap
resteasy-servlet
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher
resteasy-servlet
/rest/*
index.html
Код: Выделить всё
http://localhost:8080/RestPathAnnotationExample/rest/message/test
Код: Выделить всё
No webpage was found for the web address: http://localhost:8080/RestPathAnnotationExample/rest/message/test
Подробнее здесь: https://stackoverflow.com/questions/481 ... g-resteasy