-
- 使用memcached解决票据分发
- 导入jar文件
<dependency> <groupId>org.jasig.cas</groupId> <artifactId>cas-client-support-distributed-ehcache</artifactId> <version>3.1.9</version> <scope>compile</scope> <type>jar</type>
</dependency> - 2. 在客户端web.xml文件中 <filter> <filter-name>CAS Validation Filter</filter-name> <filter-class>org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter</filter-class> <init-param> <param-name>proxyGrantingTicketStorageClass</param-name> <param-value>org.jasig.cas.client.proxy.MemcachedBackedProxyGrantingTicketStorageImpl</param-value> </init-param> </filter> - 3. 安装memcached,并且在classpath目录下创建/cas/casclient_memcached_hosts.txt 文件格式是<hostname>:<ports> 启动memcached,启动客户端项目就可以解决退出问题了
具体可以查看https://wiki.jasig.org/display/CASC/Using+the+CAS+Client+in+a+Distributed+Environment
来源:oschina
链接:https://my.oschina.net/u/2361282/blog/715474