首页>代码>spring boot集成ehcache极简入门实例>/springboot-ehcache/src/main/java/com/simon/springbootehcache/controller/CacheViewController.java
package com.simon.springbootehcache.controller; import com.simon.springbootehcache.util.EhCacheUtil; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * @author simon */ @RequestMapping("/cache") @RestController public class CacheViewController { @RequestMapping("/view") public String cacheView() { Object cacheValue = EhCacheUtil.getInstance().get("user", "user-zhangsan"); return cacheValue.toString(); } }

微信网友_6658091507814400 LV3
2023年9月20日
微信网友_6658063909801984
2023年9月20日
暂无贡献等级
茶茶茶百道qq
2023年9月20日
暂无贡献等级
xuweiwowzy LV5
2023年8月10日
xiaomujiang
2023年8月10日
暂无贡献等级
damowang0022
2023年8月9日
暂无贡献等级
飞呀飞呀飞不放 LV7
2023年8月8日
yyh1252 LV8
2023年8月7日
crosa_Don LV18
2023年8月4日
444105047 LV6
2023年8月2日