springboot配置redis最简单例子
解决方法:
1、添加依赖
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> <version>1.5.6.RELEASE</version> </dependency>
2、在启动类Application中添加一下配置:http://www.yayihouse.com/yayishuwu/chapter/1299