spring-security-redirect을 사용해야합니다. 기본적으로 URL이 /login.html?spring-security-redirect=/secure.html
인 경우, 성공적인 로그인시 스프링 보안이 자동으로 secure.html로 리디렉션됩니다.
봄 3.1.x부터는 더 이상 사용하지 않습니다. 당신의 < 폼 로그인 > 요소에
authentication-success-handler-ref="simpleUrlAuthenticationSuccessHandler"
을 ... 그리고처럼 보이는 빈 추가 : 로그인 양식으로 리디렉션이 수행됩니다
<!-- Emulates the functionality of spring security 3.0.x by specifying the targetUrlParameter to be the value it
defaulted to in 3.0.x. As of 3.1.x this is null by default with no option to specify in <form-login> -->
<beans:bean id="simpleUrlAuthenticationSuccessHandler" class="org.springframework.security.web.authentication.SimpleUrlAuthenticationSuccessHandler">
<beans:property name="useReferer" value="true"/>
<beans:property name="defaultTargetUrl" value="/account"/>
<beans:property name="targetUrlParameter" value="spring-security-redirect"/>
</beans:bean>
하고 작동 : 를 https://stackoverflow.com/questions/34087954/ 비밀번호 보안 방법 - 추가 - 리디렉션 - 쿼리 - 매개 변수 - 로그인 - 허용 - 허용 URL –