Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Method stereotype usage in JAX-RS
package org.xstefank;
import javax.enterprise.inject.Produces;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.core.Response;
@Path("test")
public class TestResource {
@Path("get")
@GET
@TestStereotype
@Produces
public Response get() {
return Response.ok("get").build();
}
@Path("getSth")
@GET
@AnotherTestStereotype
@Produces
public Response getSth() {
return Response.ok("getSth").build();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.