使用SpringDataRedis加入缓存,防止同一查询请求到数据库查询多次

首先在pom文件中加入redis <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> 然后在application.yam文
相关文章
相关标签/搜索