
Spring
文章平均质量分 77
xiaose7613
你在我的生命中,是那最闪亮的星
展开
-
Spring AspectJ简单测试代码
1.定义一个被通知的对象(目标对象)POJOpublic class TestBean { public void add() { System.out.println("add to db"); }} 2.定义一个通知对象(advisor)@Aspectpublic class TestAdvice { @Pointcut原创 2009-06-26 22:09:00 · 1059 阅读 · 0 评论 -
5.4.2 Using Hibernate templates
HibernateTemplate’s main responsibility is to simplify the work of openingand closing Hibernate Sessions and to convert Hibernate-specific exceptionsto one of the Spring ORM exceptions 下面实例是按照Spri原创 2009-07-04 19:48:00 · 736 阅读 · 0 评论 -
Spring 事务传播属性
Propagation behaviorWhat it meansPROPAGATION_MANDATORYIndicates that the method must run within a transaction. If no existing transaction is in progress, an exception wil原创 2009-07-08 15:48:00 · 729 阅读 · 0 评论