mybatis-generator自动生成工具去掉注释

 
  1.  <!-- 为了防止生成的代码中有很多注释,比较难看,加入下面的配置控制  -->  
  2.  <!-- &lt;!&ndash; 是否去除自动生成的注释 true:是 : false:否 &ndash;&gt; -->  
  3.   <commentGenerator >  
  4.            <property name="suppressDate" value="true"/>  
  5.             <property name="suppressAllComments" value="true"/>  
  6.         </commentGenerator>  
  7.      <!-- 注释控制完毕 -->  
 
 
  1. <jdbcConnection driverClass="oracle.jdbc.driver.OracleDriver"  
  2.    connectionURL="jdbc:oracle:thin:@xxx.xxx.x.xxx:1521:xxxx" userId="xxxx" password="xxxx">  
  3.   </jdbcConnection>  

 
  1. 注意先后顺序。上面去除注释的配置要放在数据库配置的前面,不然会报错。 
posted @ 2017-12-15 12:36  guodaxia  阅读(1096)  评论(0)    收藏  举报