mirror of
https://github.com/keycloak/keycloak.git
synced 2026-02-13 10:49:19 -06:00
Previously an ObjectMapper was created multiple times during startup: two times during bootstrap and one additional time for the first request sent to Keycloak. Additionally jackson modules, e.g. support for JSR310 java.time types were not registered event-though they are present on the classpath. This PR revises the initialization of the ObjectMapper. - Ensure ObjectMapper is only initialized once - Ensure that jackson modules on the classpath are properly Fixes #16295 Signed-off-by: Thomas Darimont <thomas.darimont@googlemail.com>