ResultSet rs = IOTool.GetSession().connection().createStatement().executeQuery(SQL); 俺是这个会出现问题… 信息: Not binding factory to JNDI, no JNDI name configured (SQLException) No operations allowed after statement closed. java.sql.SQLException: No operations allowed after statement closed. at com.mysql.jdbc.Statement.checkClosed(Statement.java:270)
我现在出现了 和你一样的问题添加session.connection().setAutoCommit(true) ,
如果多次操作就不好使了! 你解决了吗????
俺是这个会出现问题…
信息: Not binding factory to JNDI, no JNDI name configured
(SQLException)
No operations allowed after statement closed.
java.sql.SQLException: No operations allowed after statement closed.
at com.mysql.jdbc.Statement.checkClosed(Statement.java:270)