Java/Spring에서 쿼리 문자열을 추가하기 위해 해시 맵을 어떻게 설정합니까?

StackOverflow https://stackoverflow.com/questions/1627892

문제

안에 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 매개 변수를 다른 페이지에 전달할 수있는 방법 ...

<bean id="unused-url-quick" class="java.util.HashMap">
    <constructor-arg>
    <map>
      <entry key="/page.html?qs=1" value="/otherpage.html?qs=1"/>
        ...
    </map>

.. 쿼리 문자열 키 = 값 쌍은 어디에 있습니까?

도움이 되었습니까?

해결책

이것은 스프링 레벨에서 이루어지지 않습니다.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top