
Spring
文章平均质量分 92
caihuan
这个作者很懒,什么都没留下…
展开
-
using springmodules-cache
项目进入了后期阶段,发现了不少的性能问题,其中有部分领域对象在应用的某些阶段相对稳定,于是准备采用cache,减少对象构建次数,减少数据库访问次数,有针对性地改善性能问题。 using springmodules-cache的主要原因是其屏蔽了各个不同cache产品的接口差异性,提供了一致的编程模型,已经实现adapter的包括: EHCache, JBoss Cac...2007-04-26 10:53:09 · 145 阅读 · 0 评论 -
spring-modules-cache的问题
当前的spring-modules-cache 0.8版本对于oscache不支持flushEntry,只支持flushGroups和flushAll。原因是其没有记录cacheKeyGenerator,无法得到cache的key,通过修改,应该是可以得到cache的key,并让其支持flushEntry的。...2010-03-25 17:27:25 · 284 阅读 · 0 评论 -
Spring JPA实现逻辑源码分析总结
1、TransactionSynchronizationManager,事务资源同步,ThreadLocal都在这里。2、SharedEntityManagerCreator,entitymanager的创建入口都是通过该类,该类被EntityManagerBeanDefinitionRegistrarPostProcessor注册到beanfactory中,依赖EntityManager ...2016-07-25 11:08:51 · 849 阅读 · 0 评论 -
Spring AOP实现逻辑源码分析总结
AspectJAutoProxyRegistrar 根据@EnableAspectJAutoProxy或<aop:aspectj-autoproxy/>注册AnnotationAwareAspectJAutoProxyCreator AnnotationAwareAspectJAutoProxyCreator extends AspectJAwareAdvisorAutoPr...2016-07-25 11:18:21 · 262 阅读 · 0 评论 -
Customizing HttpMessageConverters with Spring Boot and Spring MVC
Customizing HttpMessageConverters with Spring Boot and Spring MVC时间 2014-09-15 06:00:00 all and sundry原文 http://www.java-allandsundry.com/2014/09/customizing-httpmessageconverters-with.htm...原创 2016-01-11 15:41:35 · 108 阅读 · 0 评论 -
[转]spring发布和接收定制的事件(spring事件传播)
转自:http://blog.youkuaiyun.com/it_man/article/details/8440737 spring发布和接收定制的事件(spring事件传播)2012-12-26 20:05 11291人阅读 评论(1) 收藏 举报 有事件,即有事件监听器. 有人问你spring监听器有哪些你看了下文即也知道了。 事件传播Applica...原创 2016-02-18 16:23:02 · 103 阅读 · 0 评论 -
spring-session-redis配置实例
web.xml配置:<?xml version="1.0" encoding="UTF-8"?><web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java原创 2016-02-24 11:34:00 · 155 阅读 · 0 评论 -
[转]spring容器外注入
转自:http://www.iteye.com/topic/481813 DDD 现在越来越流行了, 不管正确与否, new User().save() 这样的写法相对千篇一律的 service dao transaction script 总是显得更酷也更具吸引力, save 方法一般来说是这个样子 Java代码 public void save() { ...原创 2016-03-28 11:56:56 · 218 阅读 · 0 评论