随笔分类 - Spring
摘要:Spring、Hibernate 事务流程分析-Session生命周期TransactionInterceptor(Spring事务架构的具体使用场景) -> invoke方法:方法意图大致为获取当前方面的事务属性,然后调用父类TransactionAspectSupport的createTransactionIfNecessary()方法去获取事务(根据需要创建事务)。TransactionAspectSupport -> createTransactionIfNecessary方法:到PlatformTransactionManager中获取当前事务状态对象。而这里讲的是Hib
        阅读全文
            
摘要:在测试service类时报错.错误为 org/junit/Assume$AssumptionViolatedException; nested exception is java.lang.NoClassDefFoundError: org/junit/Assume$AssumptionViolatedException百思不得其解,然后就翻Google,后来Spring的jira中翻到,原来Spring 2.5 branch中是使用得junit 4.4.同时Spring 2.5 branch已经处于静止状态,不会在更新了.控制台会报这个错误,java.lang.NoClassDefFound
        阅读全文
            
 
                    
                
 
 浙公网安备 33010602011771号
浙公网安备 33010602011771号