|
@@ -15,11 +15,13 @@ import org.apache.http.client.utils.URIBuilder;
|
|
|
import org.apache.http.impl.client.CloseableHttpClient;
|
|
|
import org.apache.http.impl.client.HttpClients;
|
|
|
import org.apache.http.util.EntityUtils;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
import org.springframework.context.ConfigurableApplicationContext;
|
|
|
import org.springframework.core.env.Environment;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import javax.annotation.PostConstruct;
|
|
|
import java.io.IOException;
|
|
|
import java.net.URISyntaxException;
|
|
|
import java.nio.charset.StandardCharsets;
|
|
@@ -39,21 +41,15 @@ public class XinLuDataProcessor implements XinLuService {
|
|
|
private static final CloseableHttpClient httpClient = HttpClients.createDefault();
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+ @Value("${xinlu.callback.url}")
|
|
|
+ private String url;
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ @PostConstruct
|
|
|
+ public void init() {
|
|
|
+ log.info("xinlu init{}",url);
|
|
|
+ }
|
|
|
|
|
|
-
|
|
|
-
|
|
|
- private static final String url = "http://192.168.0.61:810/xinlu/callback";
|
|
|
|
|
|
|
|
|
* 处理机构数据入口
|