zoukankan      html  css  js  c++  java
  • Ibatis DataSource configuration.

    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:util="http://www.springframework.org/schema/util"
        xsi:schemaLocation="
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
        http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.1.xsd"
        default-autowire="byName">
    
        <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
            <property name="ignoreUnresolvablePlaceholders" value="true" />
            <property name="locations">
                <list>
                    <value>classpath*:jdbc.properties</value>
                </list>
            </property>
        </bean>
        
        <bean id="order-dataSource" class="org.apache.commons.dbcp.BasicDataSource"       
                destroy-method="close">       
            <property name="driverClassName" value="${jdbc.driver}" />      
            <property name="url" value="${jdbc.url.order-master}" />      
            <property name="username" value="${jdbc.username.order}" />      
            <property name="password" value="${jdbc.password.order}" />      
        </bean>  
    
        <bean id="order-sqlMapClient" class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">
            <property name="configLocation" value="classpath:ibatis/order-sqlmap-config.xml" />
            <property name="dataSource" ref="order-dataSource" />
        </bean>
    
    </beans>
  • 相关阅读:
    html5游戏开发1Aptana 3 eclipse 插件安装
    HTML5 game Development Summary
    前端开发必备的工具
    前端优化方案
    JavaScript 事件冒泡简介及应用(转)
    标准W3C盒子模型和IE盒子模型CSS布局经典盒子模型(转)
    理解.NET中的异常(二)
    异常处理准则
    C#通讯编程
    C#读写文件总结
  • 原文地址:https://www.cnblogs.com/zhonghan/p/3464864.html
Copyright © 2011-2022 走看看