分类: Java
2013-12-06 16:22:22
在项目的/Believeus/src/main/webapp/META-INF/context.xml
中写入
crossContext="true" privileged="true" sessionCookiePath="/"
sessionCookieDomain=".believeus.cn">
memcachedNodes="n1:127.0.0.1:11211"
requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"
transcoderFactoryClass="de.javakaffee.web.msm.JavaSerializationTranscoderFactory"/>
需要用到的jar包:
memcached-2.6.jar()
javolution-5.4.3.1.jar
memcached-session-manager-1.5.1.jar
memcached-session-manager-tc7-1.5.1.jar
msm-javolution-serializer-1.5.1.jar
msm-kryo-serializer-1.5.1.jar
msm-xstream-serializer-1.5.1.jar
以上jar包在中都可以找到。放入tomcat/lib目录下