est-il un moyen simple pour permettre le rassemblement et unmarshalling String [] Liste à RESTEasy?RESTEasy - simple, tableau de chaînes/collection TRIAGE
Mon exemple de code:
@GET
@Path("/getSomething")
@Produces(MediaType.APPLICATION_JSON)
public List<String> getSomeData() {
return Arrays.asList("a","b","c","d");
}
Au-dessus me donne une exception:
Could not find MessageBodyWriter for response object
of type: java.util.Arrays$ArrayList of media type: application/json