SSH解决Cannot create JDBC driver of class '' for connect URL 'jdbc:mysql://localhost:3306/xxx'

当出现以下错误

Struts Problem Report

Struts has detected an unhandled exception:

Messages:
  1. No suitable driver
  2. Cannot create JDBC driver of class '' for connect URL 'jdbc:mysql://localhost:3306/bbs'
  3. Could not open connection
  4. Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Could not open connection
File: java/sql/DriverManager.java
Line number: 315
打开spring配置文件,默认为applicationContext.xml。
找到找到这个bean,
在bean里面添加
即可。

错误原因是没有添加jdbc连接桥

你可能感兴趣的:(SSH解决Cannot create JDBC driver of class '' for connect URL 'jdbc:mysql://localhost:3306/xxx')