XML Parser Errors See Details for more Information XML Parser Error on line 1: Document root ele

来源:互联网 发布:win7网络加速设置 编辑:程序博客网 时间:2024/05/19 22:04

1、错误描述

XML Parser Errors  See Details for more Information  XML Parser Error on line 1: Document root element "generatorConfiguration", must match DOCTYPE root "null".  XML Parser Error on line 1: Document is invalid: no grammar found.


2、错误原因

     generatorConfig.xml以<generatorConfiguration> 开头,没有正确配置头部


3、解决办法

     在上述<generatorConfiguration>头部添加如下代码:

<?xml version="1.0" encoding="UTF-8"?>  <!DOCTYPE generatorConfiguration    PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"    "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd"> 



0 4