SPRINGBOOT4--引入redis

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

若是须要存入对象须要序列化等操做对象

相关文章
相关标签/搜索