Why doesn't UriInfo.getQueryParameters() decode '+'?
问题 I know I can work around this, but it seems very strange that the behaviour is different if you use an annotated query parameter, compared with pulling the parameter out of the parameter map (which should be decoded according to the javadoc). Is this a bug, or just a quirk? @GET @Path("/") @Produces(MediaType.APPLICATION_JSON) public Response getAssets(@Context UriInfo info, @QueryParam("q") String searchQuery) { // The request URI is http://myhost.com/appRoot?q=foo+bar%20baz // At this point