最新回答 / Zhong1
测试类看看@ContextConfiguration("classpath:applicationContext.xml")有没有写错要和你的配置信息一样 我少写了.xml就找不到了
2016-12-02
最新回答 / lxlacie
在service类前加上@Transactional,声明这个service所有方法需要事务管理。每一个业务方法开始时都会打开一个事务。 Spring默认情况下会对运行期例外(RunTimeException)进行事务回滚。这个例外是unchecked 如果遇到checked意外就不回滚。 如何改变默认规则: 1 让checked例外也回滚:在整个方法前加上 @Transactional(rollbackFor=Exception.class) 2 让unchecked例外不回滚: @Transactio...
2016-11-07
最新回答 / MotoDoctor
你要理解 只读事务的概念,推荐看一下这篇文章 http://boy00fly.iteye.com/blog/1142754
最新回答 / 曲胡弓上的缅怀星光
没有 C3P0 jar包,Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.mchange.v2.c3p0.ComboPooledDataSource] for bean with name 'dataSource' defined in class path resource [applicationContext1.xml]; nested exceptio...
2016-08-31