|
@@ -45,9 +45,9 @@ public class SysWebServiceImpl implements ISysWebService {
|
|
|
public Boolean restartWebService(String url) {
|
|
|
String respone = "";
|
|
|
try {
|
|
|
- // String url = "http://127.0.0.1:2929/v1.39/containers/nginx-test/restart";
|
|
|
+ String url1 = "http://172.17.0.1:2929/v1.39/containers/nginx-test/stop";
|
|
|
Map<String, String> paramMap = new HashMap<>();
|
|
|
- respone = HttpUtils.postFormBody(url, paramMap);
|
|
|
+ respone = HttpUtils.postFormBody(url1, paramMap);
|
|
|
System.out.println(respone);
|
|
|
} catch (IOException e) {
|
|
|
throw new CustomException("重启请求错误"+e.getMessage());
|