模拟登录获取token private void getToken() { RestTemplate restTemplate = new RestTemplate(); JSONObject param = new JSONObject(); param.put("username", "xxxxxxxxxx"); param.put("password"