我试试这个项目https://github.com/jcoleman/tomcat-redis-session-manager
用于redis中的商店会话。
jedis-2.5.1 和 commons-pool-2 位于 tomcat / lib 中
但它也是reqiure org/apache/commons/pool/impl/GenericObjectPool$Config
当我把它( commons-pool-1.6.jar )放在lib目录中时, tomcat 抛出异常Type 'redis/clients/jedis/JedisPoolConfig' is not assignable to 'org/apache/commons/pool/impl/GenericObjectPool$Config'
可以smbd帮忙吗?
答案 0 :(得分:1)
git pull the lastest coede,修改build.gradle文件
dependencies {
compile group: 'org.apache.tomcat', name: 'tomcat-catalina', version: '7.0.54'
compile group: 'redis.clients', name: 'jedis', version: '2.5.1'
}
gradle jar