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
Hello. Last week we migrated our projects from spring boot 2.3.12.RELEASE to spring boot 2.7.11 and after that our projects are not starting anymore with the following exception :
Reason: org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [java.util.LinkedHashMap<?, ?>] to type
This happens for entries that are defined as empty objects in the YML file. I attached a sample project
The change in behavior is due to #21704 which has affected the behavior of YamlProcessor's building of the flattened map.
Prior to #21704, the value of person.address was an empty map which the flattening process dropped completely. With the change for #21704 in place, the value of person.address is an OriginTrackedValue that wraps the empty map. This wrapper isn't an instance of String, Map, or Collection so it's added as-is to the result map.
My memory about #21704 is quite hazy but the change appears to contradict our decision to decline #19095. I'm not sure if we changed our minds on #19095 or overlooked an implication of #21704. We'll discuss this one as a team and figure out what to do. In the meantime, hopefully you can remove the empty map from your YAML. This will restore Spring Boot 2.3's behavior which was ignoring it anyway.
Hello. Last week we migrated our projects from
spring boot 2.3.12.RELEASE
tospring boot 2.7.11
and after that our projects are not starting anymore with the following exception :This happens for entries that are defined as empty objects in the YML file. I attached a sample project
demo.zip
The text was updated successfully, but these errors were encountered: