Spring/Spring MVC框架
文章平均质量分 76
DreamChanDev
个人博客: www.dreamchan.cn
展开
-
Spring的AOP
一、实现自己的AOP 在之前一篇随笔中已经详细讲解了java的动态代理机制,我们也知道了AOP的底层其实就是基于动态代理机制实现的,所以这里先自己实现一下AOP public class DynamicProxy implements InvocationHandler { // 要代理的对象 private Object target; // 将构造方法转载 2016-11-23 17:08:33 · 383 阅读 · 0 评论 -
SpringMVC中Could not obtain transaction-synchronized Session for current thread的解决方案
首先列出错误信息org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current thread at org.springframework.orm.hibernate4.SpringSessionContext.currentSession(SpringSessio转载 2016-12-09 10:54:43 · 641 阅读 · 0 评论