严重: 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的时候,末尾不能有空格存在,要删掉所有的多余空格

最新文章

  1. hdu2848 Visible Trees (容斥原理)
  2. 什么是原生的javascript
  3. System.Data.SQLite
  4. servlet设置缓存时间以及文件的下载
  5. iOS8 Size Classes的理解与使用
  6. c#常用的一些命名空间
  7. html特殊符号列表
  8. Monitor and diagnose performance in Java SE 6--转载
  9. 修改tomcat的get方法的参数长度
  10. 微信和支付宝支付模式详解及实现(.Net标准库)- OSS开源系列
  11. Visual Studio 2013怎么关闭智能提示?
  12. LIRe 源代码分析 4:建立索引(DocumentBuilder)[以颜色布局为例]
  13. Open Daylight integration with OpenStack: a tutorial
  14. ORA-00600: internal error code, arguments: [13030], [20]一例解决
  15. 手动增删windows 服务和dll函数
  16. XE5开发Android程序调用电话相关功能(短信息和电话) [转]
  17. SQL0668N 不允许对表"xxx"执行操作,原因码为 "1"
  18. SSH批量分发管理
  19. JS中parseint和number的区别
  20. SVA描述(一)

热门文章

  1. Oracle LOB字段判空
  2. MyBatis学习小结
  3. 使用PostMan快速生成代码
  4. devpress grid表格自适应列宽的问题
  5. 无法调试存储过程,无法启动T-SQL调试
  6. .NET CORE 2.0小白笔记(五):配置的热更新、配置的框架设计
  7. 使用AlloyLever来搞定开发调试发布,错误监控上报,用户问题定位
  8. Java交通灯系统
  9. nginx做反向代理proxy_pass,proxy_redirect的使用
  10. Dijkstra 算法——计算有权最短路径(边有权值)