首页
App
&
Coffee
文档
项目
分享
反馈
俱乐部
登录
注册
DruidPlugin连接Oracle问题
北流家园网
2025-03-26 21:42
dbPlugin.start这里卡很久。
单独测试又快
找不出问题在哪里。
项目:
JFinal
评论区
JFinal
2025-03-27 01:26
单步调试进入 start() ,看看内部是哪行代码慢了
回复
北流家园网
2025-03-29 20:07
@JFinal
public void build(List
tableList, Config config) { // 支持 useAsDataTransfer(...) 中的 arp.start() 正常运作 if (config.dataSource instanceof NullDataSource) { return ; } Table temp = null; Connection conn = null; try { conn = config.dataSource.getConnection(); TableMapping tableMapping = TableMapping.me(); for (Table table : tableList) { temp = table; doBuild(table, conn, config); tableMapping.putTable(table); DbKit.addModelToConfigMapping(table.getModelClass(), config); } } catch (Exception e) { if (temp != null) { System.err.println("Can not create Table object, maybe the table " + temp.getName() + " is not exists."); } throw new ActiveRecordException(e); } finally { config.close(conn); } }执行这一段代码时非常慢,一直卡住
回复
发送
我要反馈
热门反馈
扫码入社