How to read the structure of objects by the “type” field using spring when starting an APP from application.yml
I want to read the hierarchy of objects from the yml file of the service properties. The hierarchy can be read from the yml file with your hands through the ObjectMapper(YAMLFactory())
using @JsonSubTypes
, but I would like to do it somehow by means of a spring so that when the context is raised, the properties are already connected.