Commit 4d103463 by flying-cattle

链接异常时报错提醒

parent 053b02e7
......@@ -69,6 +69,9 @@ public class EntityInfoUtil {
rs.close();
pstemt.close();
con.close();
if (null==columns||columns.size()==0) {
throw new RuntimeException("未能读取到表或表中的字段。请检查链接url,数据库账户,数据库密码,查询的数据名、是否正确。");
}
return bi;
} catch (Exception e) {
e.printStackTrace();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment