Skip to content

Commit

Permalink
Adding back AfterburnerModule to ObjectMapperConfiguration. This inst…
Browse files Browse the repository at this point in the history
…ance is the one that Spring Boot is going to inject to its beans.
  • Loading branch information
jmigueprieto committed Jul 2, 2024
1 parent 17b790e commit 24671ed
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.module.afterburner.AfterburnerModule;
import jakarta.annotation.PostConstruct;

@Configuration
Expand All @@ -33,5 +34,6 @@ public void customizeDefaultObjectMapper() {
objectMapper.setDefaultPropertyInclusion(
JsonInclude.Value.construct(
JsonInclude.Include.NON_NULL, JsonInclude.Include.ALWAYS));
objectMapper.registerModule(new AfterburnerModule());
}
}

0 comments on commit 24671ed

Please sign in to comment.