手记

(windows)STS 中使用mybatis generator遇到的问题(1)

异常:Unexpected error while running MyBatis Generator.
Cannot resolve classpath entry: D:java_develop\mysql\mysql-connector-java-5.1.6-bin.jar

异常原因 :.properties中路径问题
db.driverLocation=D:\java_develop\mysql\mysql-connector-java-5.1.6-bin.jar

解决方法:将路径中的"\换成 “\”

1人推荐
随时随地看视频
慕课网APP