Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Connections could not b

报错信息:

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 com/shiyaxin/dao/IAccountDao.java (best guess)
### The error may involve com.shiyaxin.dao.IAccountDao.findAll

原因:org.springframework.jdbc。获取JDBC连接失败;嵌套异常是java.sql。无法从基础数据库获取连接!
###错误可能存在于com/shiyaxin/dao/IAccountDao.java(最佳猜测)
错误可能涉及com.shiyaxin.dao.IAccountDao.findAll

分析到错误的代码处:
注意url和driver里面的/和:,不要多了,或者少了,我的错误是多了一个/

 
    
    
        
        
        
        
    
    
    
        
    

你可能感兴趣的:(java的配置文件,SpringMvc,SSM)