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级别完成的。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top