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">