Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何通过 CURL 为这个 Apache Wink 处理程序发送有效请求?
@GET @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public JSONObject find(JSONObject request) { // .... }
我意识到这是一个旧线程,但我想回答它,以防有人像我一样偶然发现这个问题
尝试:
@GET @Path ( "{json}" ) @Produces (MediaType.APPLICATION_JSON ) public JSONObject find(@PathParam("json") JSONObject json) { ... }