Friday 4 November 2011

Spring configuration error: Could not load JDBC driver class [com.mysql.jdbc.Driver]

Configuration error for Spring: Could not load JDBC driver class [com.mysql.jdbc.Driver]
Solution: add to pom.xml
<!-- 
- MySQL database driver
- GlassFish contains it / Tomcat needs it
- handles error "Could not load JDBC driver class [com.mysql.jdbc.Driver]"
-->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.10</version>
</dependency>

No comments:

Post a Comment