|
|
@@ -682,16 +682,27 @@ public class ZymlServiceImpl implements IZymlService {
|
|
|
}
|
|
|
|
|
|
|
|
|
+// @Override
|
|
|
+// public JSONArray getResourceData() throws IOException {
|
|
|
+// //java.net.URL fileURL = this.getClass().getResource("C:\\Users\\Administrator\\Desktop\\06\\aaa\\iserver_service_url_v1.json");
|
|
|
+// //String fileName = fileURL.getPath();
|
|
|
+// //String fileName = "C:\\Users\\Administrator\\Desktop\\06\\aaa\\iserver_service_url_v1.json";
|
|
|
+// String fileName = "D:\\jar\\baseModulesApply\\dir\\iserver_service_url_v1.json";
|
|
|
+// String configStr = FileUtils.readFileToString(new File(fileName), StandardCharsets.UTF_8);
|
|
|
+// JSONArray res = JSON.parseArray(configStr);
|
|
|
+// return res;
|
|
|
+// }
|
|
|
+
|
|
|
@Override
|
|
|
public JSONArray getResourceData() throws IOException {
|
|
|
- //java.net.URL fileURL = this.getClass().getResource("C:\\Users\\Administrator\\Desktop\\06\\aaa\\iserver_service_url_v1.json");
|
|
|
- //String fileName = fileURL.getPath();
|
|
|
- //String fileName = "C:\\Users\\Administrator\\Desktop\\06\\aaa\\iserver_service_url_v1.json";
|
|
|
- String fileName = "D:\\jar\\baseModulesApply\\dir\\iserver_service_url_v1.json";
|
|
|
+ java.net.URL fileURL = this.getClass().getResource("/iserver_service_url_v1.json");
|
|
|
+ String fileName = fileURL.getPath();
|
|
|
String configStr = FileUtils.readFileToString(new File(fileName), StandardCharsets.UTF_8);
|
|
|
JSONArray res = JSON.parseArray(configStr);
|
|
|
return res;
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
}
|