Failed to obtain JDBC Connection
nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database 碰到這個問題的同學,可以試試:
<dependency> ????<groupId>mysql</groupId> ????<artifactId>mysql-connector-java</artifactId> ????<version>5.1.44</version> </dependency>
加上版本號就可以了
2020-05-31
我的是版本太新了 ,默認是
2018-12-29
org.mybatis.spring.MyBatisSystemException: nested exception is 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 [E:\ideaworkspace\demo\target\classes\mapper\AreaDao.xml]
### The error may involve com.imooc.demo.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!
2018-12-29
改了也沒有用啊,這個問題卡了好久,網上還說改jdbc.driver=com.mysql.jdbc.Driver,然后還是這個問題
2018-12-27
已解決。