验证Dao说连接数据库失败
来源:2-6 逐层完成SSM的各项配置
慕姐9476746
2020-04-21
Caused by: org.apache.ibatis.exceptions.PersistenceException:
Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!
The error may exist in file [C:\Users\ASUS\Desktop\o2o\target\classes\mapper\AreaDao.xml]
The error may involve com.imooc.o2o.dao.AreaDao.queryArea
The error occurred while executing a query
Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!
老师验证Dao时候报这个错误
写回答
2回答
-
翔仔
2020-04-22
132020-08-19 -
Cris_hu
2020-08-19
我是重新找了和数据库配置相关的文件,最终在spring-dao下发现配置出了问题
00
相似问题