Cause: java.sql.SQLException: Error setting driver on UnpooledDataSource. Cause: java.lang.ClassNot

This error is usually caused by the failure to load the MySQL driver successfully. I have checked that there is a MySQLjar in Maven. So what’s the problem?

<property name="driver" value="com.mysql.jdbc.Driver"/>

The problem is in this code, you can’t use the wrong case. driver—> Driver


Read More: