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

来源:3-8 业务controller方法的实现

Zhou丶Code_

2018-05-21 12:02

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!


写回答 关注

1回答

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

    已解决 可无视

    gongwa...

    怎么解决的,我也遇到了同样的问题

    2019-07-01 14:50:53

    共 1 条回复 >

SpringBoot+MyBatis搭建迷你小程序

SpringBoot+MyBatis搭建小程序后台

91500 学习 · 621 问题

查看课程

相似问题