Skip to content

Tag: spring-boot

@Conditionalonproperty for complex objects to yaml

I am having yaml config with the next structure: And I need to init bean only if “myComplexObject” property is present in config. I’ve tried: But in this case spring boot ignores property and do not init my bean. But it works fine for simple structures like: Is that possible to use @Conditio…