|
|
@@ -36,6 +36,9 @@ public class ZymlServiceImpl implements IZymlService {
|
|
|
|
|
|
private static final ThreadLocal<String> IPDATA = new ThreadLocal<>();
|
|
|
|
|
|
+ @Value("sjsy.config")
|
|
|
+ private String config;
|
|
|
+
|
|
|
/**
|
|
|
* 获取资源目录列表
|
|
|
*
|
|
|
@@ -690,7 +693,8 @@ public class ZymlServiceImpl implements IZymlService {
|
|
|
|
|
|
@Override
|
|
|
public JSONArray getResourceData() throws IOException {
|
|
|
- String fileName = "D:\\jar\\baseModulesApply\\dir\\iserver_service_url_v1.json";
|
|
|
+// String fileName = "D:\\jar\\baseModulesApply\\dir\\iserver_service_url_v1.json";
|
|
|
+ String fileName = config;
|
|
|
String configStr = FileUtils.readFileToString(new File(fileName), StandardCharsets.UTF_8);
|
|
|
JSONArray res = JSON.parseArray(configStr);
|
|
|
return res;
|