<!-- 配置生成器 -->
<generatorConfiguration>

<properties resource="mybatis/jdbc.properties"/>

<context >

<!--覆盖生成XML文件-->
<plugin type="org.mybatis.generator.plugins.UnmergeableXmlMappersPlugin" />

<!-- 不生成注释 -->
<commentGenerator>
<property name="suppressAllComments" value="true"/>
</commentGenerator>

... ...

<generatorConfiguration>

 

https://github.com/mybatis/generator/issues?utf8=%E2%9C%93&q=overwrite    这个plugin可以解决这个问题,版本是1.3.7

相关文章: