spring-content-negotiator, a Java Library for Content Negotiation with Spring
I recently wrote about cases in Spring (Boot) applications where we aren't as easily able to perform content-negotiation, as it's not an easy annotation away for different representations:
- Content Negotiation with
ExceptionHandlersin Spring (Boot)
- Content Negotiation with Servlet
Filterin Spring (Boot)
I provided sample code for how to do this, but as there's a bit of boilerplate that's needed to get it working, I've now released this as its own library, spring-content-negotiator, which simplifies setup.
It's available on Maven Central under the group
me.jvt.spring, as well as example code for how to integrate with it.