×

一步一步教你用shiro——5配置rememberMe

96
肥肥小浣熊
2018.04.30 23:45* 字数 100
        <property name="rememberMeManager">
            <bean class="org.apache.shiro.web.mgt.CookieRememberMeManager">
                <property name="cookie">
                    <bean class="org.apache.shiro.web.servlet.SimpleCookie">
                        <constructor-arg value="rememberMe"/>
                        <property name="maxAge" value="1800"/>
                    </bean>
                </property>
            </bean>
        </property>
码哥
Web note ad 1