- 博客(6)
- 资源 (3)
- 收藏
- 关注
原创 spring cache 6: 启动时计算并缓存方法是否需要走缓存
spring cache 6: 启动时计算并缓存方法是否需要走缓存初始化bean时:BeanFactoryCacheOperationSourceAdvisor(Advisor)中的Pointcut是CacheOperationSourcePointcutspring启动时创建对象(ProxyFactory创建当前对象的一个Proxy类)中的wrapIfNecessary需要计算出所有ad...
2019-06-19 20:30:58 279
原创 spring cache 5: ProxyCachingConfiguration
ProxyCachingConfiguration当注解 @EnableCaching 对一个类进行修饰时,就会生成一些bean这个类很简单/*** {@code @Configuration} class that registers the Spring infrastructure beans necessary* to enable proxy-based annotation-...
2019-06-19 20:27:54 1948
原创 spring cache 4: CacheAspectSupport
spring cache 4: CacheAspectSupportCacheOperationMetadataCacheOperationContextCacheAspectSupport 的重要方法getCacheOperationMetadataexecuteCacheAspectSupport 是 spring 执行 cache 相关操作的核心类它有5个内部类CacheOperat...
2019-06-19 20:17:26 1580
原创 spring cache 3: CacheOperationSourcePointcut
spring cache 3: CacheOperationSourcePointcutumlStaticMethodMatcherStaticMethodMatcherPointcutCacheOperationSourcePointcut看之前需要了解 spring中 org.springframework.aop.PointCut 这个接口的作用之前已经讲过 spring cache中 ...
2019-06-19 20:04:23 355
原创 spring cache 2: CacheOperationSource
spring cache 2: CacheOperationSourceumlCacheOperationSourceAbstractFallbackCacheOperationSource私有字段需要子类实现的方法getCacheOperations() 的实现CacheAnnotationParser 相关类CacheAnnotationParserSpringCacheAnnotationP...
2019-06-19 20:00:43 767
原创 spring cache 1: CacheOperation
spring cache 1: CacheOperationumlCacheOperation私有字段CacheOperation.BuilderCacheableOperationCachePutOperationCacheEvictOperationCacheOperation 类在spring解析 @Cacheable,@CachePut, @CacheEvict,@CacheConfig...
2019-06-19 19:40:12 726
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人