6月 20, 2020 6:15:11 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8888"]
6月 20, 2020 6:15:11 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Tomcat
6月 20, 2020 6:15:11 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.47
6月 20, 2020 6:15:13 下午 org.apache.catalina.core.ApplicationContext log
信息: No Spring WebApplicationInitializer types detected on classpath
6月 20, 2020 6:15:13 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
6月 20, 2020 6:15:13 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring FrameworkServlet 'dispatcherServlet'
6月 20, 2020 6:15:14 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8888"]
6月 20, 2020 6:15:47 下午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet [dispatcherServlet] in context with path [/test_ssm_web] threw exception [Request processing failed; nested exception is 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 com/it/ssm/dao/IProductDao.java (best guess)
### The error may involve com.it.ssm.dao.IProductDao.findAl
求助,SSM框架数据库连接问题:SQLException: Connections could not be acquired from the underlying database!
最新推荐文章于 2023-10-22 20:09:43 发布
在使用SSM(Spring、SpringMVC、MyBatis)框架开发时遇到数据库连接问题,具体错误为:SQLException: Connections could not be acquired from the underlying database!。这可能是由于数据源配置错误、数据库连接池问题或者数据库服务器未正常运行导致的。解决此类问题通常需要检查配置文件中的数据库URL、用户名、密码是否正确,同时确保数据库服务已启动并能正常响应。另外,还要考虑数据库连接池设置,如最大连接数、超时时间等是否合理。
摘要由CSDN通过智能技术生成