[macrozheng/mall]运行tiny03 generator的时候会报 :1:1: Premature end of file.的fatal,前面两节没报,大佬可以解答下吗

2024-01-03 927 views
0

如题

回答

0

好像是因为是空文件的原因,我换成github的源文件后报了个新错误 The existing XML file PmsBrandMapper.xml is not the same format as the generated file. The existing file will not be changed.

9

找到原因了,之前generator生成xml文件的时候报:1:1: Premature end of file 所以debug的时候模仿tiny02删掉了这一行

至于报:1:1: Premature end of file的原因 从这里找到一个解答 https://blog.csdn.net/MinggeQingchun/article/details/111039694 简单的解法就是修改pom.xml文件中的org.mybatis.generator依赖版本为1.3.7 看起来tiny02用的就是1.3.7,不知道为什么macro在tiny03的代码里又换成了1.3.3,希望macro尽快修复下吧