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>
  • 相关阅读:
    Linux 文件特殊权限
    Linux ACL权限
    Linux 用户管理命令
    Asm.js: Javascript的编译目标
    《Zero to One》的一些读书笔记
    Tomcat架构(四)
    Tomcat架构(三)
    Tomcat架构(二)
    Tomcat 架构 (一)
    MATERIAL DESIGN学习笔记
  • 原文地址:https://www.cnblogs.com/zhonghan/p/3464864.html
Copyright © 2011-2022 走看看