String url = null;
AccessToken token = getWxTokenFromWX(WX_appid,WX_secret); 
    //首先判断在数据中的token谁否有效 如果无效 在从数据库中取
if(token!= null){
if(token.getExpiresIn()<=7200){
     // 拼装创建菜单的url
     url = TEMPLATE_MSG_URL.replace("ACCESS_TOKEN",token.getToken());
     System.out.println("token2========>"+token.getToken());
}

}