2017-08-28 14:08
@JFinal 是的,我跑了几遍断点都走过了这个catch (Throwable t) {
if (conn != null) try {conn.rollback();} catch (Exception e1) {LogKit.error(e1.getMessage(), e1);}
throw t instanceof RuntimeException ? (RuntimeException)t : new ActiveRecordException(t);
}然后都往下走finally了
2017-08-28 13:28
@JFinal AutoTableBindPlugin arp =
new AutoTableBindPlugin(PropKit.get(ConstantInit.DB_DATASOURCE_MAIN), yimei);
arp.autoScan(false);
String yimeiPackage = PropKit.get(ConstantInit.CONFIG_SCAN_YIMEI_PACKAGE);
arp.addScanPackages(yimeiPackage);
me.add(arp);
arp.setTransactionLevel(4);这个加上了也不行
2017-08-28 13:27
@JFinal 我加上了“arp.setTransactionLevel(4)“,还是不行,我有一个疑问的是:这种多表插入的操作,像现在我打断点跑,执行到menu表的save(),和resource表的save()方法,然后去刷新数据库,数据添加进去了,然后往下执行,跑到报错的地方,再然后跳到“Source not found.”,再按3次F6,跳进MethodProxy.class的catch (InvocationTargetException arg3),后面到Invocation.class的catch (RuntimeException e),最后到这来:catch (Throwable t) {
if (conn != null) try {conn.rollback();} catch (Exception e1) {LogKit.error(e1.getMessage(), e1);}