新增事务测试代码
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user