Exception message:Code:PageRequest page = new PageRequest(0, PAGE_SIZE, new Sort( Sort.Direction.DESC, "date")); Page<User> users = this.dao.findAll(page); ObjectMapper mapper = new ObjectMapper(); ByteArrayOutputStream out = new ByteArrayOutputStream(); mapper.writeValue(out, page); String json = new String(out.toByteArray()); page = mapper.readValue(json, PageRequest.class);
org.codehaus.jackson.map.JsonMappingException: No suitable constructor found for type [simple type, class org.springframework.data.domain.PageRequest]: can not instantiate from JSON object (need to add/enable type information?)......


Reply With Quote
