摘要: 要管理事务的service方法注入DataSourceTransactionManager@Injectprivate DataSourceTransactionManager transactionManager; 方法中:public void init(User user, Item item) throws Exception{ DefaultTransactionDefinition def = new DefaultTransactionDefinition();//事务定义类 def.setPropagationBehavior(Transactio... 阅读全文
posted @ 2011-10-12 17:48 hawk0035 阅读(7982) 评论(2) 推荐(0) 编辑