2016.7.12 去除mybatis-generator生成的class里的注释

用mybatis-generator自动生成代码会出现很多没必要的注释。

 
 

在配置文件里加上:

是否去除所有自动生成的文件的时间戳:

是否去除所有自动生成文件的注释:

<commentGenerator>

  <property name="suppressDate" value="false"/>

  <property name="suppressAllComments" value="true"/>

</commentGenerator>

原文地址:https://www.cnblogs.com/lyh421/p/5672867.html