This commit is contained in:
fanfuxiaoran 2014-02-25 17:40:03 +08:00
parent fae75f3eb0
commit ae6b807d1f
2 changed files with 2 additions and 3 deletions

View File

@ -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;
}

View File

@ -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 {