通过 HTTP PUT Java

PUT on Java through HTTP

我在 java

中有一个 put 注释
@PUT 
@Path("create-user") 
public Response createCor(@QueryParam("cor_id") String cor_id, 
@QueryParam("bill") String bill 
) 
{ 
if (StringHelper.isEmptyOrWhitespace(cor_id) || 
StringHelper.isEmptyOrWhitespace(bill)){ 
and so on...

当我向 http://[ip-address]:[port]/api/example/create-user?cor_id=1&bill=12/
我得到一个错误。屏幕截图中的错误示例

默认情况下,您使用 GET 方法请求 url
您只能使用邮递员等工具测试其他方法
使用邮递员发出请求: https://i.stack.imgur.com/9mkCT.png