请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

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

[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

正在回答 回答被采纳积分+3

1回答

提问者 qq_慕桂英1446211 2021-01-28 18:31:04

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 回复 有任何疑惑可以回复我~
  • 提问者 qq_慕桂英1446211 #1
    翻了很多博客才找到原因,只要按照错误提示新建对应的文件夹,然后把jar包和datasource.properties以及generatorConfig.xml放进去就好了
    回复 有任何疑惑可以回复我~ 2021-01-28 21:44:11
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信