i am using Jersey 2.17, JSON and automatic feature discovery.
I have my custom JSON Provider extending JacksonJsonProvider. It's annotated with @Provider and automatically registerd, same as default one that comes with:
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-json-jackson</artifactId>
</dependency>
I want to disable/exclude default one without giving up on feature scanning/manually registering everything.
Only solution I've came up with is @Priority(Integer.MAX_VALUE) to make sure my provider have higher priority, but I don't like the idea of relying on priority.
tried jersey.config.disableJsonProcessing but it does not seem to change anything