refactor
This commit is contained in:
parent
fae75f3eb0
commit
ae6b807d1f
|
@ -40,6 +40,7 @@ public abstract class BaseControllerService {
|
|||
Map<String, String> properties = new HashMap<String, String>();
|
||||
properties
|
||||
.put(AUTH_HEADER_PROPERTY, ACCES_TOCKEN_STARTER + accessToken);
|
||||
|
||||
return properties;
|
||||
}
|
||||
|
||||
|
|
|
@ -38,12 +38,10 @@ public class RecordPortActionController extends BaseControllerService {
|
|||
|
||||
@RequestMapping("addPortToPool")
|
||||
@ResponseBody
|
||||
public Boolean addPorttoPortPool(HttpServletRequest request,
|
||||
public boolean addPorttoPortPool(HttpServletRequest request,
|
||||
@ModelAttribute("accessToken") String accessToken,
|
||||
@RequestParam String port) {
|
||||
System.out.println("enter add port");
|
||||
Map<String, String> params = new HashMap<String, String>();
|
||||
System.out.println("port:" + port);
|
||||
params.put("port", port);
|
||||
HttpResponse httpResponse;
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue