Open ghimisradu opened 5 months ago
Another "solution" is to remove the Mongo health configuraiton. e.g.: when using spring-boot-starter-data-mongodb-reactive
@SpringBootApplication(exclude = MongoReactiveHealthContributorAutoConfiguration.class) public class MongoStorageApplication
Description If consul heartbeat it's configured to use actuator health(the default configuration) and we have some mongo repositories on classpath a circular dependency it's created between them:
If
spring.cloud.consul.discovery.heartbeat.use-actuator-health
it's set tofalse
then the dependency chain it's broken and everything works.Sample Please check the repository here
Versions Spring boot: 3.1.5 Spring cloud: 2022.0.4 Java: 17