mybatis查询数据库报错
Error querying database. Cause: java.sql.SQLException: Connection is closed.
The error may exist in file [E:*******/CompanyDao.xml]
The error may involve com.tot.dao.CompanyDao.selectCompany4Select
The error occurred while executing a query
SQL:
select id,short_name name from companies WHERE ( status <> ?
AND belong_tmc_id = ? )
Cause: java.sql.SQLException: Connection is closed.
大家有没有遇到类似的问题啊。这个问题有时候会报,有时候有不会包。开始以为是数据库的问题。我用工具去连接数据库,没有发现异常现象。
bt中的蝌蚪
10 years ago