~/talk

Effective Versioning of REST APIs: Spring MVC, JAX‑RS and Annotations, Mixins

TalkinRussianat JPoint 2025 · 2025-04-03..04-04· [java, api-design]
links:none on file
slides:none on file

Describes a practical approach to REST API versioning in Java under high load and biweekly releases, using annotations (e.g. @VersionRange) to separate version-specific logic and Jackson mixins (or an alternative non-mixin serialization strategy) to customize serialization without changing domain classes. For Spring MVC, a custom VersionAwareHandlerMapping selects the correct API version based on the Accept header; for JAX-RS (Jersey), resources are modified at application startup (adding @Produces) to support different media types.

AI-written summary · about

  1. 0:00Introduction
  2. 3:11API versioning problems
  3. 6:22When versioning needed
  4. 7:26Version transmission methods
  5. 8:29Custom Version Range annotation
  6. 13:48Request mapping with versions
  7. 15:11Content negotiation
  8. 17:36Custom JSON converter
  9. 19:02Jackson mixins for versioning
  10. 22:33Mixins vs annotations
  11. 23:55Custom JSON Rule Version
  12. 27:46Jackson Annotation Introspector
  13. 29:13JAX-RS versioning with Java Assist
  14. 34:50JAX-RS response filter
  15. 36:19When to use versioning
  16. 37:22Benefits and production use
  17. 37:43Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.