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. 注意先后顺序。上面去除注释的配置要放在数据库配置的前面,不然会报错。 

相关文章:

  • 2021-10-28
  • 2022-12-23
  • 2022-01-19
猜你喜欢
  • 2022-12-23
  • 2021-05-29
  • 2021-08-05
  • 2022-01-26
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
相关资源
相似解决方案