新增事务测试代码

This commit is contained in:
thinkgem
2019-07-07 00:48:34 +08:00
parent 875a4526cf
commit b5fd643070
7 changed files with 65 additions and 18 deletions

View File

@@ -99,7 +99,7 @@ jdbc:
# maxEvictableIdleTimeMillis: 1800000
#
# # 是否自动回收泄露的连接和超时时间单位秒35分钟4.0.6+
# removeAbandoned: true
# removeAbandoned: false
# removeAbandonedTimeout: 2100
#
# # Oracle 下会自动开启 PSCache并指定每个连接上 PSCache 大小。若不指定,则与 maxActive 相同4.1.5+
@@ -124,9 +124,10 @@ jdbc:
# minIdle: 3
# maxActive: 20
# # JTA 分布式事务v4.0.4+
# # JTA 分布式事务,建议启用多数据源的时候开启v4.0.4+
# jta:
# enabled: false
# 注意:如果报 oracle.jdbc.xa.OracleXAResource.recover 错误,则需要授权如下:
# grant select on sys.dba_pending_transactions to jeesite;
# grant select on sys.pending_trans$ to jeesite;

View File

@@ -10,6 +10,7 @@
<% if(hasPermi('test:testData:edit')){ %>
<a href="${ctx}/test/testData/form" class="btn btn-default btnTool" title="${text('新增数据')}"><i class="fa fa-plus"></i> ${text('新增')}</a>
<% } %>
<a href="#" class="btn btn-default" id="btnTrunsTest" title="事务测试"><i class="fa fa-refresh"></i> 事务测试</a>
</div>
</div>
<div class="box-body">
@@ -175,5 +176,12 @@ $('#dataGrid').dataGrid({
// $("#dataGrid").parent().append("<div class=\"ml10\">没有符合数据</div>");
// }
}
});
});
$("#btnTrunsTest").click(function(){
js.ajaxSubmit("${ctx}/test/testData/transTest", function(data){
js.showMessage(data.message);
page();
});
return false;
});
</script>