筱筱攻城狮 2019-12-02 18:00 采纳率: 0%
浏览 1275

IDEA中使用MyBatis generator插件配置generator.xml读取不到配置文件

环境:
IDEA 2019 JDK1.8 mybatis-generator-maven-plugin为1.3.2
1.在maven中我已经引入了mybatis-generator-maven-plugin,如图:版本为1.3.2

2.然后开始配置generator.xml文件,此次项目中的所有配置文件都放在resources下,如图:

图片说明

3.报错信息为:Cannot resolve file 'datasource.properties'

4.运行mybatis-generator:generator控制台报错信息如下:

[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate (default-cli) on project mmall: Access denied for user 'root'@'127.0.0.1' (using password: YES) -> [Help 1]

[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] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

  • 写回答

3条回答 默认 最新

  • dabocaiqq 2019-12-02 22:05
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 matlab有关常微分方程的问题求解决
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算
  • ¥15 java如何提取出pdf里的文字?
  • ¥100 求三轴之间相互配合画圆以及直线的算法
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable