加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

[ERROR] XML Parser Error on line 11: 注释中不允许出现字符串

发布时间:2020-12-16 05:55:14 所属栏目:百科 来源:网络整理
导读:1、错误描述 F:workspacesMybatismvn mybatis-generator:generate[INFO] Scanning for projects...[INFO][INFO] ------------------------------------------------------------------------[INFO] Building Mybatis 0.0.1-SNAPSHOT[INFO] ---------------

1、错误描述

F:workspacesMybatis>mvn mybatis-generator:generate
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Mybatis 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- mybatis-generator-maven-plugin:1.3.2:generate (default-cli) @ Mybatis
 ---
[ERROR] XML Parser Error on line 11: 注释中不允许出现字符串 "--"。
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.046 s
[INFO] Finished at: 2016-03-03T23:19:52+08:00
[INFO] Final Memory: 6M/171M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plu
gin:1.3.2:generate (default-cli) on project Mybatis: XML Parser Error on line 11
: 注释中不允许出现字符串 "--"。 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors,re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception

F:workspacesMybatis>

2、错误原因

generatorConfig.xml中出现<!-- -->注释,报错


3、解决办法

去掉generatorConfig.xml中的<!-- -->注释

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读