Skip to content

Commit

Permalink
fix rabbitHealthIndicator issue when rabbitmq is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
marwanehcine committed Oct 31, 2023
1 parent 95c9ae0 commit f1e4393
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public class FiltersAutoConfiguration {
return new StripBasePathGatewayFilterFactory();
}

@ConditionalOnProperty(name = "enableRabbitmqEvents", havingValue = "true", matchIfMissing = false)
@ConditionalOnProperty(name = "enableRabbitmqEvents", havingValue = "false", matchIfMissing = true)
public @Bean HealthIndicator rabbitHealthIndicator() {
return () -> Health.up().withDetail("version", "mock").build();
}
Expand Down

0 comments on commit f1e4393

Please sign in to comment.