问答详情
源自:3-8 业务controller方法的实现

数据库连接失败 AreaDao.xml 配置有问题吗?检查了没发现哪里有异样

Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Mon May 21 11:50:15 CST 2018

There was an unexpected error (type=Internal Server Error, status=500).

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 [/Users/zhouxuming/javaee/demo/target/classes/mapper/AreaDao.xml] ### The error may involve com.example.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!


提问者:Zhou丶Code_ 2018-05-21 12:02

个回答

  • Zhou丶Code_
    2018-05-21 15:20:33

    已解决 可无视