我试图向邮递员发出http GET请求,但是很遗憾,我找不到404资源:这是我的javaClass:
@GET
@Path("epc/{epc}")
@AuthorizationAction(DefaultAuthorizationAction.LIST)
@Produces(MediaType.APPLICATION_JSON)
public CustomComposedItemDto findByAnyEpc(@PathParam("epc") String epc);
在邮递员中,我使用此URL来测试我的http请求:
http://localhost:8080/gucci-tmr-api/custom/composedItems/epc/808015581702014010000009
不幸的是,在邮递员中,即使网址正确,我也找不到错误资源。色情消息是:
{
"requestURL": "http://localhost:8080/gucci-tmr-api/custom/composedItems/epc/808015581702014010000009",
"requestMethod": "GET",
"status": "NOT_FOUND",
"message": "Resou`enter code here`rceNotFoundException: Resource not found",
"errorCode": "WEBRESOURCE.NOTFOUND",
"stackTrace": "Enable verbose`enter code here` logging to see this section"
}
邮递员响应出现错误,表示资源不存在。