缓存机制
文章平均质量分 87
胡姚超
这个作者很懒,什么都没留下…
展开
-
springboot搭配redis缓存注解
启动类+注解 @EnableCachingcontroller:/** * 缓存测试 * @param baseRequest * @return * @throws BizException */@PostMapping("/testRedisCache")public BaseResponse testRedisCache(CustomerDeliveryDetailRequest baseRequest) throws BizException { WmsEntityRes.原创 2021-12-14 16:29:33 · 822 阅读 · 0 评论 -
ehcache缓存测试
springboot项目。tomcat的连接池最大线程数目设置为10。用Jeter做测试,一轮并发100个请求。springboot里面的Controller会请求一个service的方法,该service中有一个打印输出。同时该service上进行了ehcache缓存注解。那么请问service中的打印输出会打印几次?这几次打印时间节点有什么特征?pom.xml的maven引入:<dependency> <groupId>net.sf.ehcache</原创 2021-05-13 10:28:47 · 334 阅读 · 1 评论