I initialized a new project with Eclipse Spring boot and created the spring.factories file under src/main/resources/META-INF. On startup the configured bean does not get loaded.
Spring.factories:
org.springframework.cloud.bootstrap.BootstrapConfiguration=\
net.conjur.config.ConjurConfiguration,\
net.conjur.config.ConjurPropertySourceLocator
My application class got some annotations:
@SpringBootApplication
@SpringBootConfiguration
@EnableAutoConfiguration
As an example one of the beans looks like this:
@Configuration
public class ConjurConfiguration {
@Bean
public ConjurPropertySource getConjurPropertySource() {
return new ConjurPropertySource();
}
}
I already tried this:
Processing of Bootstrap configuration is disabled by default in Spring Cloud 2020.0 and later. To re-enable it, set spring.cloud.bootstrap.enabled=true
.