您应该使用interface而不是list的实现。
尝试使用以下方法更改返回类型: java.util.List
编辑:尝试将列表包装到GenericEntity中:
List<String> myList = new ArrayList<String>();// add ...final GenericEntity<List<String>> entity = new GenericEntity<List<String>>(myList) { };Response.status(Status.BAD_REQUEST).entity(entity).build();


