title: SpringBoot filtering: At least one property must be given
body: <p>I'm trying to implement filtering and pagination to my spring boot application and I've ran into an issue.</p>
  
  <p>This is my controller: page and size have a default value and every other parameter should be optional like below.</p>
  
  <pre><code>@PreAuthorize("hasAuthority('service_manager')")
  @RequestMapping(path = "/clients", method = RequestMethod.GET)
  public Page&lt;ClientResponse&gt; getClients(
              @RequestParam(defaultValue = "0") int page,
              @RequestParam(defaultValue = "10") int size,
              @RequestParam(required = false) String companyName,
              @RequestParam(required = false) BigInteger firmRegNo,
              @RequestParam(required = false) String address,
              @RequestParam(required = false) BigInteger contractNo,
              @RequestParam(required = false) BigInteger monthlyPay,
              @RequestParam(required = false) User.UserStatus status
              ) {
      ClientListRequest request = new ClientListRequest(companyName, firmRegNo, address, contractNo, monthlyPay, status);
      return clientService.getAllClients(request, of(page, size, Sort.Direction.DESC))
              .map(ClientResponse::new);
  }
  </code></pre>
  
  <p>When making a GET request to "<a href="http://localhost:8080/clients?companyName=Selver" rel="nofollow noreferrer">http://localhost:8080/clients?companyName=Selver</a>" I'm getting this response:</p>
  
  <pre><code>{
      "timestamp": "2019-02-18T07:40:44.182+0000",
      "status": 500,
      "error": "Internal Server Error",
      "message": "At least one property must be given!",
      "path": "/clients"
  }
  </code></pre>
  
  <p>The same response comes without the parameters too. Any ideas?</p>