Spring启动应用程序启动失败

时间:2017-04-13 09:32:28

标签: java eclipse spring-boot

我正在尝试通过阅读在线教程来学习Spring Boot。我一定是做了些傻事并得到了错误。要重现错误,我必须完成整个项目。这是GitHub链接:https://github.com/madsum/Springboot

有人可以让我知道出了什么问题吗?

static func renewToken(_ onSuccess: @escaping (JSON) -> Void, onFailure: @escaping (Error) -> Void) {

    let token = ""
    let header = ["Authorization": "Bearer "+token]

    Alamofire.request("", method: .get, parameters: nil, encoding: JSONEncoding.default, headers: header)
        .validate()
        .responseJSON { response in
            switch response.result{
            case .success(let jsonObj):
                onSuccess(JSON(jsonObj))


            case .failure(let error):
                onFailure(error)
            }
    }
}

0 个答案:

没有答案
相关问题