Skip to content

Demo spring boot app demostrating how to define custom serializers instead of default Jackson

Notifications You must be signed in to change notification settings

salamonpavel/spring-play-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring boot with custom json serializers

This application demonstrates how to define custom serializers for http endpoints in spring boot application of version 2.6.6.

The solution is prepared for two most common json libraries in Scala community - play-json and circe.

In order to define custom serializer one needs to:

  • bring desired json dependencies into pom.xml
  • define reads/writes (play-json) and/or encoders/decoders (circe) for used types
  • define HttpMessageConverter for the json library of choice
  • add converter into a list of converters in spring configuration

About

Demo spring boot app demostrating how to define custom serializers instead of default Jackson

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages