applicationContext.xml中配置:
。。。。。。
aop:config
/aop:config
<tx:advice id="txAdvice" transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="*" propagation="REQUIRED" />
</tx:attributes>
</tx:advice>
Service 文件中
package web.impl.service;
。。。。。
public class PictureServiceImpl implements PictureServiceAware {
。。。。。。
pictureDao.addPicture(picture);//保存到数据库
throw new Exception("");
}
怎么数据库还是有插入数据呢?