Commit 6573d229 authored by 赵啸非's avatar 赵啸非

修改读取配置文件

parent 8599ded5
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<profiles.filepath>/tmp</profiles.filepath> <profiles.filepath>/tmp</profiles.filepath>
<profiles.log.level>INFO</profiles.log.level> <profiles.log.level>INFO</profiles.log.level>
<profiles.log.path>/opt/apps/mid-service/logs</profiles.log.path> <profiles.log.path>/opt/apps/mid-service/logs</profiles.log.path>
<profiles.config.path>/tmp/mid.prop</profiles.config.path> <profiles.config.path>/root/mid.prop</profiles.config.path>
<profiles.server.port>80</profiles.server.port> <profiles.server.port>80</profiles.server.port>
<profiles.hcpUrl>http://192.168.0.98:8090/inter/hcpapi/hcpGrabEvaluate</profiles.hcpUrl> <profiles.hcpUrl>http://192.168.0.98:8090/inter/hcpapi/hcpGrabEvaluate</profiles.hcpUrl>
<profiles.hcpGovUrl>https://hcp.sczwfw.gov.cn/appEval/index.html#/evalInstrument</profiles.hcpGovUrl> <profiles.hcpGovUrl>https://hcp.sczwfw.gov.cn/appEval/index.html#/evalInstrument</profiles.hcpGovUrl>
......
...@@ -254,7 +254,7 @@ public class CaptureThread implements Runnable { ...@@ -254,7 +254,7 @@ public class CaptureThread implements Runnable {
String hcpUrl = hcpGovUrl + "?affairCode=" + affairCode; String hcpUrl = hcpGovUrl + "?affairCode=" + affairCode;
Map<String, Object> paramMap = new HashMap<>(); Map<String, Object> paramMap = new HashMap<>();
paramMap.put("url", hcpUrl); paramMap.put("url", hcpUrl);
paramMap.put("windowid", hcpReq.getWindowid()); paramMap.put("windowid", hcpReq.getWindowId());
log.info("req url:{},body:{}", url, JSON.toJSONString(paramMap)); log.info("req url:{},body:{}", url, JSON.toJSONString(paramMap));
String response = HttpUtil.post(url, paramMap); String response = HttpUtil.post(url, paramMap);
...@@ -286,7 +286,7 @@ public class CaptureThread implements Runnable { ...@@ -286,7 +286,7 @@ public class CaptureThread implements Runnable {
public static void main(String[] args) { public static void main(String[] args) {
String json="{ } 12"; String json = "{ } 12";
boolean jsonBoolean = JSONValidator.from(json).validate(); boolean jsonBoolean = JSONValidator.from(json).validate();
System.out.println(jsonBoolean); System.out.println(jsonBoolean);
......
...@@ -11,7 +11,7 @@ import lombok.Data; ...@@ -11,7 +11,7 @@ import lombok.Data;
@Data @Data
public class HcpReq { public class HcpReq {
private Integer windowid; //窗口id private Integer windowId; //窗口id
private String url; //好差评地址,https://hcp.sczwfw.gov.cn/appEval/index.html#/evalInstrument?affairCode=511922-20210105-000597 private String url; //好差评地址,https://hcp.sczwfw.gov.cn/appEval/index.html#/evalInstrument?affairCode=511922-20210105-000597
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment