ssm集成 出错 连接不上数据库 求大神帮帮忙
springmvc吧
全部回复
仅看楼主
level 2
小毛炉411 楼主
2016年12月16日 15点12分 1
level 2
小毛炉411 楼主
at com.yt.mysql.service.im[QC] DEBUG [http-80-1] org.springframework.transaction.support.AbstractPlatformTransactionManager.processRollback(865) | Should roll back transaction but cannot - no transaction available
[QC] DEBUG [http-80-1] org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver.resolveException(134) | Resolving exception from handler [public org.springframework.web.servlet.ModelAndView com.yt.mysql.controller.EmployeeController.selectList() throws java.lang.Exception]: org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver'
### The error may exist in om/yt/mysql/mapper/EmployeeMapper.xml
### The error may involve om.yt.mysql.mapper.EmployeeMapper.selectByExample
### The error occurred while executing a query
### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver'
[QC] DEBUG [http-80-1] org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver.resolveException(134) | Resolving exception from handler [public org.springframework.web.servlet.ModelAndView com.yt.mysql.controller.EmployeeController.selectList() throws java.lang.Exception]: org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver'
### The error may exist in om/yt/mysql/mapper/EmployeeMapper.xml
### The error may involve om.yt.mysql.mapper.EmployeeMapper.selectByExample
### The error occurred while executing a query
### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver'
[QC] DEBUG [http-80-1] org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver.resolveException(134) | Resolving exception from handler [public org.springframework.web.servlet.ModelAndView com.yt.mysql.controller.EmployeeController.selectList() throws java.lang.Exception]: org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver'
### The error may exist in om/yt/mysql/mapper/EmployeeMapper.xml
### The error may involve om.yt.mysql.mapper.EmployeeMapper.selectByExample
### The error occurred while executing a query
### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver'
[QC] DEBUG [http-80-1] org.springframework.web.servlet.FrameworkServlet.processRequest(954) | Could not complete request
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver'
### The error may exist in om/yt/mysql/mapper/EmployeeMapper.xml
### The error may involve om.yt.mysql.mapper.EmployeeMapper.selectByExample
### The error occurred while executing a query
### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver'
at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:76)
2016年12月16日 15点12分 2
level 2
小毛炉411 楼主
大神们 来帮帮看看
2016年12月16日 15点12分 3
level 1
Cannot load JDBC driver class 'com.mysql.jdbc.Driver'缺少mysql的jar包
2016年12月23日 07点12分 4
1