使用idea的兄弟們注意了,在<tx:advice>的標簽中,一定要引入tx結尾的,不要引入cache,剛剛出坑
2017-12-09
1.8的版本確實報Failed to load ApplicationContext錯誤,更新到spring4.2就行了。謝謝那位兄弟的提醒,不然又踩坑
2017-12-09
講的有點問題,應該在aaa 中調用 bbb,這樣來舉例比較好,把他們并行寫不太合適.
2017-12-01
最新回答 / zl135
<tx:advice id="txAdvice" transaction-manager="transactionManager">這個事物advice的管理者為transactionManager,你從配置文件中應該能夠找到一個ID為transactionManager的bean,而這個建議中規定了transfer方法的傳輸方式為REQUIRED。
2017-11-28
jdk1.8版本的兄弟,遇到異常Failed to load ApplicationContext就別檢查代碼了,報這個異常,大多就是spring jar包版本問題,更新到4.2就可以了,下載地址:http://repo.spring.io/release/org/springframework/spring/
2017-11-26