为什么发送http get请求时,球衣会导致过程错误消息

时间:2020-05-28 08:39:25

标签: api http kotlin

我试图通过简单的响应“ It Works!”来确认get请求已成功发送。但我不断从不是特定的Jersey api收到错误消息

com.sun.jersey.spi.inject.Errors processErrorMessages
Caused by: com.sun.jersey.api.NotFoundException: null for uri: http://localhost:8080/sso/customconfigs

这是我的代码:

@Path("http://localhost:8080/sso/customconfigs")
@NoAuthRequired

class SSOCustomConfigsResource {
@GET
  fun sendConfigs(): Response {
    return Response.ok("It Works!").build()
  }
}

这是我发送请求时得到的

{
    "identifier": 70004,
    "statusCode": 404,
    "message": "The path '/sso/customconfigs' is not available.",
    "type": "NotFoundException"
}

尝试将请求发送到其他端点时遇到相同的错误。

0 个答案:

没有答案
相关问题