我有一个 solr 查询“http://localhost:8080/solr/select/?q=A”。我需要在我的 java 代码中读取参数“q”。我怎样才能得到这个?
谢谢, 编码(marshal)
最佳答案
request.getParameter("q");
就可以了。
关于java - 如何使用java获取http参数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5245681/
我有一个 solr 查询“http://localhost:8080/solr/select/?q=A”。我需要在我的 java 代码中读取参数“q”。我怎样才能得到这个?
谢谢, 编码(marshal)
最佳答案
request.getParameter("q");
就可以了。
关于java - 如何使用java获取http参数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5245681/
相关文章:
ruby-on-rails - 使用 Sunspot/Solr 进行组?
java - 将字符串 "abc..z"更改为 "bcd..a"的更好方法?
java - 如何将对象从android手机发送到servlet?
python - key 错误 : 'id' when trying to index documents to Solr using sunburnt
java - 在 OneToMany JPA 中更新父级时正在创建新的子实体
java - IBM AppDOS.ConnectionClose 漏洞
java.lang.IllegalStateException : There is no current context in hybris 1905