Skip to content

Commit

Permalink
remove SearchStrategy#CURRENT (sofastack#1220)
Browse files Browse the repository at this point in the history
  • Loading branch information
致节 committed Aug 14, 2023
1 parent bc58c79 commit c221873
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.SearchStrategy;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

Expand All @@ -54,7 +53,7 @@ public class ReadinessAutoConfiguration {
.getLogger(ReadinessAutoConfiguration.class);

@Bean
@ConditionalOnMissingBean(value = ReadinessCheckListener.class, search = SearchStrategy.CURRENT)
@ConditionalOnMissingBean(value = ReadinessCheckListener.class)
public ReadinessCheckListener readinessCheckListener(HealthCheckerProcessor healthCheckerProcessor,
HealthIndicatorProcessor healthIndicatorProcessor,
ReadinessCheckCallbackProcessor afterReadinessCheckCallbackProcessor,
Expand Down

0 comments on commit c221873

Please sign in to comment.