Announcing spring-content-negotiator, a Java Library for Content Negotiation with Spring

Featured image for sharing metadata for article

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:

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.

Written by Jamie Tanna's profile image Jamie Tanna on , and last updated on .

Content for this article is shared under the terms of the Creative Commons Attribution Non Commercial Share Alike 4.0 International, and code is shared under the Apache License 2.0.

#spring #spring-boot #spring-content-negotiator #content-negotiation.

This post was filed under articles.

Interactions with this post

Interactions with this post

Below you can find the interactions that this page has had using WebMention.

Have you written a response to this post? Let me know the URL:

Do you not have a website set up with WebMention capabilities? You can use Comment Parade.