Skip to content

Commit

Permalink
统一配置前缀,修复boot2.0不支持驼峰写法
Browse files Browse the repository at this point in the history
  • Loading branch information
尹吉欢 committed Jul 31, 2018
1 parent 2b907c1 commit 44e9405
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "elasticJob.zk")
@ConfigurationProperties(prefix = "elastic.job.zk")
public class ZookeeperProperties {
/**
* 连接Zookeeper服务器的列表. 包括IP地址和端口号. 多个地址用逗号分隔. 如: host1:2181,host2:2181
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class JobConfParser implements ApplicationContextAware {
@Autowired
private ZookeeperRegistryCenter zookeeperRegistryCenter;

private String prefix = "elasticJob.";
private String prefix = "elastic.job.";

private Environment environment;

Expand Down

0 comments on commit 44e9405

Please sign in to comment.