你好。在登录成功后的 Spring-Security 中,以我使用属性的intercept-url
方式https
重定向required-channel="https"
。它工作正常,
但之后每个网址都继续使用 https。但我只想
用 https 重定向拦截 URL。
<security:http auto-config='true'>
<security:intercept-url pattern="/member/**" access="ROLE_USER" requires-channel="https"/>
<security:access-denied-handler ref="accessDeninedHandler"/>
<security:form-login login-page="/login.htm?form"
authentication-success-handler-ref="/"
authentication-failure-url="/login.htm?form" />
<security:logout invalidate-session="true" logout-url="/logout.htm" logout-success-url="/"/>
<security:remember-me key="remembermekey" services-ref="rememberMeServices" />
</security:http>