SqlMapConfig.xml

  1: <?xml version="1.0" encoding="UTF-8" ?>
  2: 
  3: <!DOCTYPE sqlMapConfig    PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN"      
  4:     "http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
  5: 
  6: <sqlMapConfig>
  7:     
  8:     <properties resource="properties/database.properties" />
  9: 
 10:      <settings  enhancementEnabled="true" 
 11:         cacheModelsEnabled="true" 
 12:         lazyLoadingEnabled="true"/>
 13:         
 14:     <transactionManager type="JDBC" commitRequired="false">
 15:         <dataSource type="SIMPLE">
 16:             <property name="JDBC.Driver" value="${driver}" />
 17:             <property name="JDBC.ConnectionURL" value="${url}" />
 18:             <property name="JDBC.Username" value="${username}" />
 19:             <property name="JDBC.Password" value="${password}" />
 20:         </dataSource>
 21:     </transactionManager>
 22: 
 23:     <sqlMap resource="org/ibatis/model/mapping/Customer.xml" />
 24: 
 25: 
 26: 
 27: 
 28: </sqlMapConfig>
 29: 
 30: 

SqlMapConfig.xml,古老的榕树,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。