Custom Jersey parameter unmarshalling
问题 I receive as a query parameter a String line like parameter=123,456,789 What I want to obtain is List<Integer> directly in my controller. Something like this: @GET @Path(REST_PATH) @Produces(MediaType.APPLICATION_JSON) public Response getSomeStuff(@MagicalThing("parameter") List<Integer> requiredList) What can be done except for custom provider and an additional type: https://stackoverflow.com/a/6124014? Update: custom annotation solves the puzzle http://avianey.blogspot.de/2011/12/exception