How to send the List of Objects as QueryParameter ??? Is it possible to send objects as QueryParameter?
User u1=new User();
User u2=new User();
List<User> user=new ArrayList<>();
user.add(u1);
user.add(u2);
// How to send the above List of Objects as QueryParameter ???
HttpEntity<Object> entity=new HttpEntity<>(user,headers);
ResponseEntity<boolean> response= restTemplate.postForEntity(url,entity,User.class);
Also how to receive the list of objects response ??
boolean getResponse( @RequestParam List<User> user ){ // This way is not possible.
}