日期:2014-05-20 浏览次数:20734 次
@Transactional(propagation=Propagation.REQUIRED,readOnly=true,timeout=3000,rollbackFor=Exception.class)
public void save()
{
System.out.println("is saved");
try{
Thread.sleep(8000);
// int i=0;
// int j=5/i;
}
catch(Exception e)
{
}
finally
{
System.out.println("出错了没事的 ");
}
System.out.println("is saved2");
}