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.