- POM文件加载redis依赖,重新maven clean package
<dependency><groupId>org.apereo.cas</groupId><artifactId>cas-server-support-redis-ticket-registry</artifactId><version>${cas.version}</version></dependency><dependency><groupId>org.apereo.cas</groupId><artifactId>cas-server-support-redis-service-registry</artifactId><version>${cas.version}</version></dependency>
- 上传到tomcat,编译后,application.properties添加redis配置,redis默认没密码:
# Redis
cas.ticket.registry.redis.host=127.0.0.1
cas.ticket.registry.redis.database=0
cas.ticket.registry.redis.port=6379
cas.ticket.registry.redis.timeout=2000
cas.ticket.registry.redis.useSsl=false
cas.ticket.registry.redis.usePool=false
- server是windows版的,直接安装Redis-x64-5.0.14.1.msi ,啥都不用配置。
- 测试。