@IocBy(type = ComboIocProvider.class,args = {
"*json","/ioc",
"*anno", "com.bb",
"*quartz",
"*async",
"*tx",
"*jedis",
"*slog"})
@Ok("json")
@Fail("http:500")
public class MainModule {
@Aop(TransAop.READ_COMMITTED)
private box getBox(Box box) {
int c1 = dao().update1(box);
int c2 = dao().update2(box);
if(c1<1 || c2<1) {
box = null;
throw new ServiceException("failed");
}
return box;
}
其中c2没成功,也抛出ServiceException了。但是c1却没有回滚?
InnoDB类型