- 博客(1)
- 收藏
- 关注
原创 myeclipse查看SVN的提交记录和对象
1。 右击项目主目录–team–显示资源历史记录 2.在History页签下找到自己提交的版本然后下方会显示此次提交的对象信息
2019-10-22 10:11:53
1446
springboot 整合ehcache+redis 通过配置文件切换缓存类型
1、springboot 整合ehcache+redis 通过配置文件application.yml切换缓存类型
2、ehcache 、redis 通过缓存管理器管理
3、可分别设置缓存的过期时间
ehcache :添加依赖 pom.xml 2、添加配置文件ehcache.xml 3、添加注解@EnableCaching @Cacheable 4、插入缓存 5 读取缓存 6 设置缓存过期时间ehcache.xml -->timeToLiveSeconds。
redis : 1、添加依赖 pom.xml 2、主入口添加注解@EnableCaching 获取缓存方法添加@Cacheable 3、初始化缓存管理器 4 实现put get方法 其中一个put方法添加了过期时间 5 调用方法获取缓存 注意需要在本地部署redis服务注意密码问题
2023-09-14
springboot 整合 redis 简单示例 (可设置缓存过期)
springboot 整合 redis 简单示例 1、添加依赖 pom.xml 2、主入口添加注解@EnableCaching 获取缓存方法添加@Cacheable 3、初始化缓存管理器 4 实现put get方法 其中一个put方法添加了过期时间 5 调用方法获取缓存。 注意需要在本地部署redis服务注意密码问题。
2023-09-14
springboot整合ehcache 设置缓存过期时间 简单示例
springboot 整合 ehcache 简单示例 1、添加依赖 pom.xml 2、添加配置文件ehcache.xml 3、添加注解@EnableCaching @Cacheable 4、插入缓存 5 读取缓存 6 设置缓存过期时间ehcache.xml -->timeToLiveSeconds。
2023-09-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人