From 08fac91dc872fb6aefd42008bc7ef3d551718e01 Mon Sep 17 00:00:00 2001 From: fanfan Date: Tue, 24 Jan 2017 16:10:03 +0800 Subject: [PATCH] fix a bug about the namespace of reg in elastic-job-lite-spring to support the max-retries attribute rightly --- .../lite/spring/reg/parser/ZookeeperBeanDefinitionParser.java | 1 + 1 file changed, 1 insertion(+) diff --git a/elastic-job-lite/elastic-job-lite-spring/src/main/java/com/dangdang/ddframe/job/lite/spring/reg/parser/ZookeeperBeanDefinitionParser.java b/elastic-job-lite/elastic-job-lite-spring/src/main/java/com/dangdang/ddframe/job/lite/spring/reg/parser/ZookeeperBeanDefinitionParser.java index 693dd6d4f6..6f65ba26bf 100644 --- a/elastic-job-lite/elastic-job-lite-spring/src/main/java/com/dangdang/ddframe/job/lite/spring/reg/parser/ZookeeperBeanDefinitionParser.java +++ b/elastic-job-lite/elastic-job-lite-spring/src/main/java/com/dangdang/ddframe/job/lite/spring/reg/parser/ZookeeperBeanDefinitionParser.java @@ -47,6 +47,7 @@ private AbstractBeanDefinition buildZookeeperConfigurationBeanDefinition(final E configuration.addConstructorArgValue(element.getAttribute("namespace")); addPropertyValueIfNotEmpty("base-sleep-time-milliseconds", "baseSleepTimeMilliseconds", element, configuration); addPropertyValueIfNotEmpty("max-sleep-time-milliseconds", "maxSleepTimeMilliseconds", element, configuration); + addPropertyValueIfNotEmpty("max-retries", "maxRetries", element, configuration); addPropertyValueIfNotEmpty("session-timeout-milliseconds", "sessionTimeoutMilliseconds", element, configuration); addPropertyValueIfNotEmpty("connection-timeout-milliseconds", "connectionTimeoutMilliseconds", element, configuration); addPropertyValueIfNotEmpty("digest", "digest", element, configuration);