redission-tomcat8配置(session共享)

在redission官网下载https://redisson.org/support.html对应版本支持jar包https://github.com/redisson/redisson,在context.xml增加如下配置:

<Manager className="com.crimsonhexagon.rsm.redisson.SingleServerSessionManager"
        endpoint="redis://localhost:6379"
        sessionKeyPrefix="_rsm_"
        saveOnChange="false"
        forceSaveAfterRequest="false"
        dirtyOnMutation="false"
        ignorePattern=".*\\.(ico|png|gif|jpg|jpeg|swf|css|js)$"
        maxSessionAttributeSize="-1"
        maxSessionSize="-1"
        allowOversizedSessions="false"
        connectionPoolSize="100"
        database="0"
        timeout="60000"
        pingTimeout="1000"
        retryAttempts="20"
        retryInterval="1000"
    />

猜你喜欢

转载自blog.csdn.net/zn65786412qq/article/details/81101802
今日推荐