jdbc连接数据库问题

### 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!

或者出现255

不能找到数据库

等等

除了url写错外

除了字符编码没设置utf-8

就是驱动问题

不要用5.1.6的数据库驱动

去驱动8.0.11的数据库!!!

dirve要加cj!!!

cao!!

posted @ 2020-04-02 23:28  sasuke。  阅读(247)  评论(0编辑  收藏  举报