点击generator生成文件报错,一直找不到原因

来源:5-10 mybatis三剑客之mybatis-generator生成数据对象和时间戳优化

qq_慕桂英1446211

2021-01-28

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.446s
[INFO] Finished at: Thu Jan 28 18:23:23 CST 2021
[INFO] Final Memory: 12M/491M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate (default-cli) on project mmall: Execution default-cli of goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate failed: Cannot resolve classpath entry: /Users/huxiaojian/IdeaProjects/mmall/src/main/resources -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

写回答

1回答

qq_慕桂英1446211

提问者

2021-01-28

db.driverLocation=/Users/huxiaojian/Library/Preferences/IntelliJIdea15/jdbc-drivers/mysql-connector-java-5.1.6.jar
db.driverClassName=com.mysql.jdbc.Driver
db.url=jdbc:mysql:///mmall_learning?characterEncoding=utf8
db.username=root
db.password=123

这样配置了,但是还是出错,求救

0
1
qq_慕桂英1446211
翻了很多博客才找到原因,只要按照错误提示新建对应的文件夹,然后把jar包和datasource.properties以及generatorConfig.xml放进去就好了
2021-01-28
共1条回复

从0开始 独立完成企业级Java电商网站服务端开发

前后端分离,数据库接口设计,架构设计,功能开发,上线运维

9476 学习 · 8804 问题

查看课程