资源简介

完美实现分布式集群Session共享 简单多tomcat8+redis的session共享实现,支持tomcat8、tomcat8.5、tomcat9,不能用直接联系我积分双倍返回。

资源截图

代码片段和文件信息

package com.orangefunction.tomcatredissessionmanager.exampleapp;

import com.google.gson.Gson;
import com.orangefunction.tomcat.redissessions.RedisSession;
import java.util.HashMap;
import java.util.Collections;
import spark.ResponseTransformerRoute;
import spark.Session;
import javax.servlet.http.HttpSession;

public abstract class JsonTransformerRoute extends ResponseTransformerRoute {

    private Gson gson = new Gson();

    protected JsonTransformerRoute(String path) {
      super(path);
    }

    protected JsonTransformerRoute(String path String acceptType) {
      super(path acceptType);
    }

    @Override
    public String render(object jsonobject) {
      return gson.toJson(jsonobject);
    }

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         278  2017-02-05 23:26  context.xml
     目录           0  2016-09-28 11:40  tomcat-redis-session-manager-master-8.0\
     文件        5301  2016-09-26 11:37  tomcat-redis-session-manager-master-8.0\.classpath
     文件          91  2015-04-08 06:44  tomcat-redis-session-manager-master-8.0\.gitignore
     目录           0  2016-09-28 11:40  tomcat-redis-session-manager-master-8.0\.gradle\
     目录           0  2016-09-28 11:40  tomcat-redis-session-manager-master-8.0\.gradle\3.1\
     目录           0  2016-09-28 11:40  tomcat-redis-session-manager-master-8.0\.gradle\3.1\taskArtifacts\
     文件          31  2016-09-26 11:37  tomcat-redis-session-manager-master-8.0\.gradle\3.1\taskArtifacts\cache.properties
     文件          17  2016-09-26 15:35  tomcat-redis-session-manager-master-8.0\.gradle\3.1\taskArtifacts\cache.properties.lock
     文件       20097  2016-09-26 15:35  tomcat-redis-session-manager-master-8.0\.gradle\3.1\taskArtifacts\fileHashes.bin
     文件       35582  2016-09-26 15:35  tomcat-redis-session-manager-master-8.0\.gradle\3.1\taskArtifacts\fileSnapshots.bin
     文件       26962  2016-09-26 15:35  tomcat-redis-session-manager-master-8.0\.gradle\3.1\taskArtifacts\taskArtifacts.bin
     文件         438  2016-09-26 11:37  tomcat-redis-session-manager-master-8.0\.project
     目录           0  2016-09-28 11:40  tomcat-redis-session-manager-master-8.0\.settings\
     文件         632  2016-09-26 11:37  tomcat-redis-session-manager-master-8.0\.settings\org.eclipse.jdt.core.prefs
     目录           0  2016-09-28 11:40  tomcat-redis-session-manager-master-8.0\bin\
     目录           0  2016-09-28 11:40  tomcat-redis-session-manager-master-8.0\bin\com\
     目录           0  2016-09-28 11:40  tomcat-redis-session-manager-master-8.0\bin\com\naritech\
     目录           0  2016-09-28 11:40  tomcat-redis-session-manager-master-8.0\bin\com\naritech\nicole\
     目录           0  2016-09-28 11:40  tomcat-redis-session-manager-master-8.0\bin\com\naritech\nicole\gump\
     文件         649  2016-09-26 15:06  tomcat-redis-session-manager-master-8.0\bin\com\naritech\nicole\gump\DeserializedSessionContainer.class
     文件        4858  2016-09-26 11:39  tomcat-redis-session-manager-master-8.0\bin\com\naritech\nicole\gump\JavaSerializer.class
     文件        4341  2016-09-26 11:39  tomcat-redis-session-manager-master-8.0\bin\com\naritech\nicole\gump\RedisSession.class
     文件        1424  2016-09-26 11:39  tomcat-redis-session-manager-master-8.0\bin\com\naritech\nicole\gump\RedisSessionHandlerValve.class
     文件        2211  2016-09-26 15:06  tomcat-redis-session-manager-master-8.0\bin\com\naritech\nicole\gump\RedisSessionManager$SessionPersistPolicy.class
     文件       26358  2016-09-26 15:06  tomcat-redis-session-manager-master-8.0\bin\com\naritech\nicole\gump\RedisSessionManager.class
     文件         616  2016-09-26 11:39  tomcat-redis-session-manager-master-8.0\bin\com\naritech\nicole\gump\Serializer.class
     文件        1635  2016-09-26 11:39  tomcat-redis-session-manager-master-8.0\bin\com\naritech\nicole\gump\SessionSerializationmetadata.class
     目录           0  2016-09-28 11:40  tomcat-redis-session-manager-master-8.0\build\
     文件         472  2016-09-26 11:33  tomcat-redis-session-manager-master-8.0\build.gradle
     目录           0  2016-09-28 11:40  tomcat-redis-session-manager-master-8.0\build\classes\
............此处省略312个文件信息

评论

共有 条评论