[英]How to get the file path request parameters using get in Spark Java framework?
http://localhost:8000/customer/AppId=API000&FileURL=http://192.0.0.16:8080/test.pdf
我无法使用以下代码访问 AppId 和 FileURL。
get("customer/", "application/json", (request, response)->{
String id = request.queryParams("AppId");
String path= request.queryParams("FileURL");
return id+":"+path;
}
提前致谢。
我们需要查看您的完整方法。
如果此代码是作为 Java 类的一部分编写的,那么您的代码实际上是如何拉取请求和响应对象的。 可能需要使用一些注释。
如果此代码是使用脚本作为 JSP 的一部分编写的,那么您还使用了哪个 JSTL 核心功能,则应显示整个部分。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.