For anyone facing the same problem:
<dependency>
<groupId>de.bwaldvogel</groupId>
<artifactId>mongo-java-server</artifactId>
<version>1.45.0</version>
</dependency>
is not compatible yet with MongoDB hello command.
org.springframework.boot.actuate.data.mongo.MongoHealthIndicator
Document result = this.mongoTemplate.executeCommand("{ isMaster: 1 }"); // in doHealthCheck
totally removed in spring-boot-actuator 3.3.3
org.springframework.boot.actuate.data.mongo.MongoHealthIndicator
Document result = this.mongoTemplate.executeCommand("{ hello: 1 }"); // in doHealthCheck
Hop this will help you.