You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The autoconfigured JacksonJsonpMapper bean used to depend on a global ObjectMapper bean before SpringBoot version v3.0.3.
After this commit introduced by SpringBoot version v3.0.3, the global ObjectMapper bean is not required when creating JacksonJsonpMapper bean.
However, the JacksonJsonpMapper bean creation condition @ConditionalOnBean(ObjectMapper.class) is not changed, resulting in JacksonJsonpMapper bean can be created only when ObjectMapper bean is present instead of the ObjectMapper class.
Bug resolving solution
Change @ConditionalOnBean(ObjectMapper.class) to @ConditionalOnClass(ObjectMapper.class)
The text was updated successfully, but these errors were encountered:
Spring Boot version
3.1.1
Bug description
The autoconfigured JacksonJsonpMapper bean used to depend on a global
ObjectMapper
bean before SpringBoot version v3.0.3.After this commit introduced by SpringBoot version v3.0.3, the global
ObjectMapper
bean is not required when creatingJacksonJsonpMapper
bean.However, the
JacksonJsonpMapper
bean creation condition@ConditionalOnBean(ObjectMapper.class)
is not changed, resulting inJacksonJsonpMapper
bean can be created only when ObjectMapper bean is present instead of the ObjectMapper class.Bug resolving solution
Change
@ConditionalOnBean(ObjectMapper.class)
to@ConditionalOnClass(ObjectMapper.class)
The text was updated successfully, but these errors were encountered: