這是啥情況啊,咋回事。。。添加的時(shí)候報(bào)的錯(cuò)
com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: No operations allowed after connection closed.
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:888)
at com.mysql.jdbc.Connection.checkClosed(Connection.java:1932)
at com.mysql.jdbc.Connection.prepareStatement(Connection.java:4768)
at com.mysql.jdbc.Connection.prepareStatement(Connection.java:4734)
at com.jedi.jdbc.dao.GoddessDao.addGoddess(GoddessDao.java:27)
at com.jedi.jdbc.dao.Main.main(Main.java:26)
2019-11-25
想問(wèn)下這是什么問(wèn)題
2019-06-10
翻譯:在連接關(guān)閉之后,操作不被允許。連接關(guān)閉可能原因,你手動(dòng) connection.close()調(diào)用了 此方法。mysql數(shù)據(jù)庫(kù)設(shè)置了連接時(shí)間,你debug模式啟動(dòng)程序獲取連接后,長(zhǎng)時(shí)間沒(méi)操作,連接被mysql服務(wù)器關(guān)閉了。
2019-04-17
No operations allowed after connection closed.? 數(shù)據(jù)庫(kù)沒(méi)連上唄