瑞吉外卖10_springcahe整合redis
一、springcahe介绍


二、使用springcahe缓存套餐数据
1、导入springcache坐标

2、yml配置cahe

3、在引导类上导入cahe的相关注解

4、在setmealcontroller的增删查方法上编写对应注解
查询方法

注意:

增加方法:

删除方法:

5、功能测试


一、springcahe介绍


二、使用springcahe缓存套餐数据
1、导入springcache坐标

2、yml配置cahe

3、在引导类上导入cahe的相关注解

4、在setmealcontroller的增删查方法上编写对应注解
查询方法

注意:

增加方法:

删除方法:

5、功能测试

