Spring Security Remberme 自定义Cookie名称,无效

记着以后备用
<remember-me /> 仍然需要定义Key

<remember-me key="MY_REMEMBER_ME_KEY" services-ref="rememberMeService"/>


<beans:bean id="rememberMeService"
		class="org.springframework.security.web.authentication.rememberme.TokenBasedRememberMeServices">
		<beans:property name="userDetailsService" ref="userDetailsService" />
		<beans:property name="key" value="MY_REMEMBER_ME_KEY" />
		<beans:property name="cookieName" value="Cookie名称"></beans:property>
		<beans:property name="parameter" value="登录表单名称_remember_me" />
	</beans:bean>

你可能感兴趣的:(java,spring,Security)