I am working on a Spring Boot 3 application with Java 17. The app can switch the tree algorithm strategy using a property from application.properties . My application.properties file contains: app.storage=memory app.tree-strategy=custom server.port=8080 This is my configuration class: @Configuration public class TreeStrategyConfig { @Bean @ConditionalOnProperty(name = “app.tree-strategy”, havingValue = “custom”, matchIfMissing = true) public TreeAlgorithmStrategy customTreeStrategy() { return new CustomTreeImpl(); } @Bean @ConditionalOnProperty(name = “app.tree-strategy”, havingValue = “collec