1、引入jar包 org.springframework.dataspring-data-redis1.6.1.RELEASE redis.clientsjedis2.7.3 2、配置bean在application.xml加入如下配置