|
@@ -29,9 +29,7 @@ import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.Arrays;
|
|
|
-import java.util.List;
|
|
|
+import java.util.*;
|
|
|
|
|
|
/**
|
|
|
* 用户 业务层处理
|
|
@@ -48,7 +46,8 @@ public class SysWebServiceImpl implements ISysWebService {
|
|
|
String respone = "";
|
|
|
try {
|
|
|
// String url = "http://127.0.0.1:2929/v1.39/containers/nginx-test/restart";
|
|
|
- respone = HttpUtils.postFormBody(url, null);
|
|
|
+ Map<String, String> paramMap = new HashMap<>();
|
|
|
+ respone = HttpUtils.postFormBody(url, paramMap);
|
|
|
System.out.println(respone);
|
|
|
} catch (IOException e) {
|
|
|
throw new CustomException("重启请求错误"+e.getMessage());
|