1.在pom中引入redis
<!-- redis -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-redis</artifactId>
<version>1.4.5.RELEASE</version>
</dependency>spring
2.在application中配置app
3.編寫簡單的stringspring-boot
若是須要存入對象須要序列化等操做對象