1、错误描述
Unexpected error while running MyBatis Generator.Cannot resolve classpath entry: mysql-connector-java-5.1.38.jar
2、错误原因
由错误提示可知,是找不到mysql-connector-java-5.1.38.jar,但是我将mysql-connector-java-5.1.38.jar跟generatorConfig.xml放在同一目录下,但是找不到
<classPathEntry location="mysql-connector-java-5.1.38.jar" />
3、解决办法
找到java连接mysql的驱动jar,利用绝对路径
<classPathEntry location="D:\MyEclipse10\workspace\OCP\src\main\webapp\WEB-INF\lib\mysql-connector-java-5.1.38.jar" />
再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow