SpringBoot 項目打包時出現以下錯誤提示:
XML Parser Error on line 44: 元素類型爲 "context" 的內容不完整, 它必須匹配 "(property*,plugin*,commentGenerator?,(connectionFactory
|jdbcConnection),javaTypeResolver?,javaModelGenerator,sqlMapGenerator?,javaClientGenerator?,table+)"。
產生的原因之一是 mybatis-generator.xml 文件裏缺失table標籤:
<table tableName="t_city"/>
自己是在一次把所有的table標籤都註釋掉的情況下產生這樣錯誤的。