我试图通过简单的响应“ 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"
}
尝试将请求发送到其他端点时遇到相同的错误。