Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ResourceContext.matchResource(URI)を使用すると URI をリソースに変換できますが、リソースからその URI に変換するにはどうすればよいですか?
私自身の質問に答える:
@Context UriInfo uriInfo; public URI getUri() { return uriInfo.getBaseUriBuilder().path(MyResource.class).build(); }