mybatis-generator在执行的时候报:
XML Parser Error on line 58: 元素类型为 “context” 的内容必须匹配 “(property*,plugin*,commentGenerator?,(connectionFactory|jdbcConnection),javaTypeResolver?,javaModelGenerator,sqlMapGenerator?,javaClientGenerator?,table+)”。
原因:mybatis-generator解析xml配置文件是按照规定的格式来的。
“*” : 大于等于0次
“?” :0次或者1次
“+” : 大于等于1次
解决:
把xml元素补全即可。