We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2769e5 commit d049ad0Copy full SHA for d049ad0
1 file changed
src/main/java/com/billyang/entrylib/Config/UserIO.java
@@ -81,17 +81,25 @@ void loadFile(String fileName) {
81
/**
82
* 加载输入配置
83
*/
84
- void initInput() {loadFile("input.json");}
+ void initInput() {
85
+ String fileName = "input.json";
86
+ File file = new File(path, fileName);
87
+ if(!file.exists()) loadFile(fileName);
88
+ }
89
90
91
* 加载输出配置
92
- void initOutput() {loadFile("output.json");}
93
+ void initOutput() {
94
+ loadFile("output.json");
95
96
97
98
* 加载全局配置
99
- void initGlobalConfig() {loadFile("global.json");}
100
+ void initGlobalConfig() {
101
+ loadFile("global.json");
102
103
104
105
* 初始化
0 commit comments