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

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

 
 

在配置文件里加上:

 

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

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

<commentGenerator>

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

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

</commentGenerator>

posted @ 2016-07-15 11:03  七月流火嗞嗞嗞  阅读(841)  评论(0编辑  收藏  举报