這次要改用javabacked的方式取得。
範例如下:
public void execute(WebScriptRequest req, WebScriptResponse response) { InputStream inputBody = req.getContent().getInputStream(); String requestBody = RequestBODY.get(inputBody,Charset.forName("utf-8")); //requestBody:{"parentUUID":"23d97062-5310-4b80-864a-a2232238fd11","uuids":[]} System.out.println("requestBody:" + requestBody); }
沒有留言:
張貼留言
留個話吧:)