zou-Jack / examination_system-

基于SSM+Bootstrap的教务查询系统,是一个简单的教务查询系统,起初用于熟悉SSM的整合开发,使用技术 IOC容器:Spring Web框架:SpringMVC ORM框架:Mybatis 数据源:C3P0 日志:log4j 前端框架:Bootstrap 运行环境 jdk8+tomcat8+mysql+Eclipse+maven 项目技术(必填) spring+spring mvc+mybatis+bootstrap+jquery,系统是IDEA开发,也可修改为eclipse版本。欢迎下载。
220 stars 76 forks source link

Could not get JDBC Connection #2

Open yuezhao-zy opened 6 years ago

yuezhao-zy commented 6 years ago

Could not get JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!

The error may exist in com/system/mapper/UserloginMapper.xml

The error may involve com.system.mapper.UserloginMapper.selectByExample

The error occurred while executing a query

可以帮忙解释下这是为啥吗?

zou-Jack commented 6 years ago

报错是数据库的问题,检查项目里面写了数据库账户密码的配置文件,是不是跟你的数据库账号密码一样?

yuezhao-zy commented 6 years ago

谢谢,已经解决了。是jdbc-connector jar包的版本与我的mysql不一致,我更新了一下jar就可以连接了。谢谢啦!