class=”markdown_views prism-atom-one-dark”>
Error setting driver on UnpooledDataSource. Cause: java.lang.ClassNotFoundException: Cannot find class: com.mysql.cj.jdbc.Driver
**This error occurs: the connection method of the driver is wrong
mysql5. 0: com.mysql.jdbc.Driver
dataSource type="POOLED">
property name="driver" value="com.mysql.jdbc.Driver"/>
property name="url" value="jdbc:mysql://localhost:13306/mybatis-example"/>
property name="username" value="root" />
property name="password" value="root" />
</dataSource
mysql8.0: com.mysql.cj.jdbc.Driver**