@RequestMapping(value="/page",method=POST,produces=APPLICATION_JSON_VALUE) public ResponseEntity<PageResponse<BookDTO>> findAll(@RequestBody PageRequestByExample<BookDTO> prbe) throws URISyntaxException {
  PageResponse<BookDTO> pageResponse=bookDTOService.findAll(prbe);
  return new ResponseEntity<>(pageResponse,new HttpHeaders(),HttpStatus.OK);
}

@ RequestMapping ( value = "/page" , method = POST , produces = APPLICATION_JSON_VALUE ) public ResponseEntity < PageResponse < BookDTO > > findAll ( @ RequestBody PageRequestByExample < BookDTO > prbe ) throws URISyntaxException { PageResponse < BookDTO > pageResponse = bookDTOService . findAll ( prbe ) ; return new ResponseEntity < > ( pageResponse , new HttpHeaders ( ) , HttpStatus . OK ) ; }
find a page of book using query by example .
