搭建SSM项目时报错(org.springframework.jdbc.CannotGetJdbcConnectionException)
2024-08-29 07:39:26
严重: Servlet.service() for servlet [SpringMVC] in context with path [/ssm] threw exception [Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver '
在搭建SSM项目时报错,一直提示Could not get JDBC Connection;
琢磨了好久才发现是jdbc.properties的文件写错了,如下:
driver=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/lin_test
username=root
password=123456
在配置jdbc的时候,末尾不能有空格存在,要删掉所有的多余空格
最新文章
- hdu2848 Visible Trees (容斥原理)
- 什么是原生的javascript
- System.Data.SQLite
- servlet设置缓存时间以及文件的下载
- iOS8 Size Classes的理解与使用
- c#常用的一些命名空间
- html特殊符号列表
- Monitor and diagnose performance in Java SE 6--转载
- 修改tomcat的get方法的参数长度
- 微信和支付宝支付模式详解及实现(.Net标准库)- OSS开源系列
- Visual Studio 2013怎么关闭智能提示?
- LIRe 源代码分析 4:建立索引(DocumentBuilder)[以颜色布局为例]
- Open Daylight integration with OpenStack: a tutorial
- ORA-00600: internal error code, arguments: [13030], [20]一例解决
- 手动增删windows 服务和dll函数
- XE5开发Android程序调用电话相关功能(短信息和电话) [转]
- SQL0668N 不允许对表";xxx";执行操作,原因码为 ";1";
- SSH批量分发管理
- JS中parseint和number的区别
- SVA描述(一)