Skip to content

Commit

Permalink
Modify PROP_PRATH
Browse files Browse the repository at this point in the history
* [BUGFIX] System.getProperty("java.io.tmpdir") => System.getProperty("java.io.tmpdir") + File.separator
  • Loading branch information
zhangzhitong committed Mar 13, 2019
1 parent 61f53f8 commit 1426be3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class SnowflakeZookeeperHolder {
private String listenAddress = null;//保存自身的key ip:port
private int workerID;
private static final String PREFIX_ZK_PATH = "/snowflake/" + PropertyFactory.getProperties().getProperty("leaf.name");
private static final String PROP_PATH = System.getProperty("java.io.tmpdir") + PropertyFactory.getProperties().getProperty("leaf.name") + "/leafconf/{port}/workerID.properties";
private static final String PROP_PATH = System.getProperty("java.io.tmpdir") + File.separator + PropertyFactory.getProperties().getProperty("leaf.name") + "/leafconf/{port}/workerID.properties";
private static final String PATH_FOREVER = PREFIX_ZK_PATH + "/forever";//保存所有数据持久的节点
private String ip;
private String port;
Expand Down

0 comments on commit 1426be3

Please sign in to comment.