How to use multiple additionalQueryString

Hi Team,
I have the following code to forcefully accept json type


But I have one rest service method which will produce @Produces(MediaType.APPLICATION_OCTET_STREAM) or PDF . While I am trying to run, It is showing “406 Not Acceptable”, If i remove the restrictions “” code is working. Can I use PDF without removing the property _type=json or can i use multiple value. Please help me in this.


How did you test it?
For example, curl command will require a request http header like Accept: */* to let the server know the client is ready to accept the different content type. [1]

curl -i -H "Accept: */*" http://localhost:8080/site/api/...