orcale Spring 配置

<!-- 数据源 -->
 <bean id="dataSource"
  class="org.apache.commons.dbcp.BasicDataSource">
  <property name="driverClassName">
   <value>oracle.jdbc.driver.OracleDriver</value>
  </property>
  <property name="url">
   <value>jdbc:oracle:thin:@192.168.0.100:1521:dbname</value>
  </property>
  <property name="username">
   <value>SYSTEM</value> <!-- gdyjs -->
  </property>
  <property name="password">
   <value>123456</value>
  </property>
 </bean>

 <!-- IBatis Sql Map -->
 <bean id="sqlMapClient"
  class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">
  <property name="dataSource" ref="dataSource" />
  <property name="configLocation">
   <value>/WEB-INF/SqlMapConfig.xml</value>
  </property>
 </bean>

你可能感兴趣的:(orcale Spring 配置)