diff --git a/hippo4j-spring-boot-starter/src/main/java/cn/hippo4j/starter/enable/BeforeCheckConfiguration.java b/hippo4j-spring-boot-starter/src/main/java/cn/hippo4j/starter/enable/BeforeCheckConfiguration.java index 82a191c9..224e409d 100644 --- a/hippo4j-spring-boot-starter/src/main/java/cn/hippo4j/starter/enable/BeforeCheckConfiguration.java +++ b/hippo4j-spring-boot-starter/src/main/java/cn/hippo4j/starter/enable/BeforeCheckConfiguration.java @@ -22,7 +22,7 @@ public class BeforeCheckConfiguration { @Bean public BeforeCheckConfiguration.BeforeCheck dynamicThreadPoolBeforeCheckBean(@Autowired(required = false) BootstrapProperties properties, ConfigurableEnvironment environment) { - if (properties != null) { + if (properties != null && properties.getEnable()) { String username = properties.getUsername(); if (StringUtil.isBlank(username)) { throw new ConfigEmptyException(