pull/1/head
tanghc 5 years ago
parent baa6289aa3
commit 0f46896306
  1. 2
      sop-website/website-server/src/main/java/com/gitee/sop/websiteserver/manager/DocManagerImpl.java

@ -86,7 +86,7 @@ public class DocManagerImpl implements DocManager {
protected void loadDocInfo(ServiceInstance serviceInstance) { protected void loadDocInfo(ServiceInstance serviceInstance) {
String query = this.buildQuery(); String query = this.buildQuery();
String url = "http://" + serviceInstance.getIpPort() + "/v2/api-docs" + query; String url = "http://" + serviceInstance.getIp() + ":" + serviceInstance.getPort() + "/v2/api-docs" + query;
try { try {
log.info("读取swagger文档,url:{}", url); log.info("读取swagger文档,url:{}", url);
ResponseEntity<String> entity = restTemplate.getForEntity(url, String.class); ResponseEntity<String> entity = restTemplate.getForEntity(url, String.class);

Loading…
Cancel
Save