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