在Java / Spring中,如何设置hashmap以附加查询字符串?
-
06-07-2019 - |
题
spring-config / applicationContext-mapping.xml :中的
我有这段代码:
<bean id="unused-url-quick" class="java.util.HashMap">
<constructor-arg>
<map>
<entry key="/page.html" value="/otherpage.html"/>
...
</map>
我可以添加一个输入键,从一个页面重定向到另一个页面。
使用相同的方法,如何将querystring参数传递给otherpage.html ...
<bean id="unused-url-quick" class="java.util.HashMap">
<constructor-arg>
<map>
<entry key="/page.html?qs=1" value="/otherpage.html?qs=1"/>
...
</map>
..查询字符串键=值对的位置有何不同?
解决方案
这不是在Spring级别完成的。
不隶属于 StackOverflow