提交 8e6c6812 authored 作者: yangli's avatar yangli

.

上级 96e5a417
...@@ -33,10 +33,8 @@ public class PersistentFileServiceImpl implements PersistentFileService { ...@@ -33,10 +33,8 @@ public class PersistentFileServiceImpl implements PersistentFileService {
} }
private void initStorageDir() { private void initStorageDir() {
storageDir = new File(persistence.getPath()); storageDir = new File(System.getProperty("user.home") + File.separator + ".haikang");
if (!storageDir.exists()) { if (!storageDir.exists()) storageDir.mkdirs();
storageDir.mkdirs();
}
} }
private void initBuffers() { private void initBuffers() {
......
...@@ -11,7 +11,6 @@ import lombok.extern.slf4j.Slf4j; ...@@ -11,7 +11,6 @@ import lombok.extern.slf4j.Slf4j;
public class PcPersistenceConfiguration { public class PcPersistenceConfiguration {
private String type; private String type;
private String path;
private int bufferSize; private int bufferSize;
private long pollingInterval; private long pollingInterval;
......
...@@ -21,7 +21,6 @@ core: ...@@ -21,7 +21,6 @@ core:
interval: 60000 interval: 60000
persistence: persistence:
type: file type: file
path: D://storage
bufferSize: 6 bufferSize: 6
connection: connection:
host: "${PC_HOST:127.0.0.1}" host: "${PC_HOST:127.0.0.1}"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论