通过Postman获取我的API数据很好,但是当在js应用程序中运行以下代码时,我会得到一个错误:Request with GET/HEAD method cannot have body.formdata.append("Id", "56afb645-6084-4129-6469-08d91f4770af");
method: 'GET
根据参数在Play Framework中呈现输出是否有好的或适当的方法?示例:http://localhost:9000/user/get/5?v=HTML // should render HTML templatehttp://localhost:9000/user/get/5?v=JSON // should render