DruidPlugin连接Oracle问题

1742996339194.jpgdbPlugin.start这里卡很久。

单独测试又快

1742996434381.jpg

找不出问题在哪里。

评论区

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); } }执行这一段代码时非常慢,一直卡住

热门反馈

扫码入社