Parsing @Context UriInfo to java thread
问题 I'm trying to parse @Context UriInfo to another thread and do some task. But when i try to run it, it gives the error as Exception in thread "Thread-691" org.jboss.resteasy.spi.LoggableFailure: Unable to find contextual data of type: javax.ws.rs.core.UriInfo My code as follows @GET @Path("/thread") public void thread(@Context UriInfo url){ Runnable run = new Runnable() { @Override public void run() { System.out.println(">>>>>>>>>>>> " + url.getRequestUri().getQuery()); } }; Thread t = new