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

前端之家收集整理的这篇文章主要介绍了XML Parser Errors See Details for more Information XML Parser Error on line 1: Document root ele前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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"> 
原文链接:https://www.f2er.com/xml/295332.html

猜你在找的XML相关文章