Cause: java.sql.SQLException: Could not retrieve transation read-only status server

### Error querying database.  Cause: java.sql.SQLException: Could not retrieve transation read-only status server
### The error may exist in file [D:\java\apache-tomcat-7.0.39\webapps\SSI\WEB-INF\classes\com\lanyuan\entity\resources-mapper.xml]
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### SQL: select      id,  name,  parentId,  (select r.name from resources r where r.id = resources.parentId ) parentName,  resKey,  type,  resUrl,  level,  description      from resources order By level asc

### Cause: java.sql.SQLException: Could not retrieve transation read-only status server

出现如上异常应该是mysql数据库和你使用的数据库的驱动包的版本存在问题,换一个驱动包可以解决

你可能感兴趣的:(数据库)