SpringBoot 缓存01
#配置
1.主应用开启缓存
@EnableCaching
2.方法配置@Cacheable
@GetMapping("/get")
@Cacheable(value = "users", key = "#id")
@ApiOperation(value="缓存")
public Result
3.如何查看 缓存的数据呢?
#配置
1.主应用开启缓存
@EnableCaching
2.方法配置@Cacheable
@GetMapping("/get")
@Cacheable(value = "users", key = "#id")
@ApiOperation(value="缓存")
public Result
3.如何查看 缓存的数据呢?