Changes between Version 2 and Version 3 of applicationContext

차이점 주위로
다음 차이점은 무시하기:
작성자:
anonymous (IP: 122.101.191.254)
날짜/시간:
2012-01-17 PM 1:30:09 (14 년 전)
설명:

--

Legend:

변경되지 않음
추가됨
제거됨
변경됨
  • applicationContext

    v2 v3  
    7070</beans> 
    7171}}} 
     72 
     73--doremi 
     74 
     75--root-context.xml 
     76{{{ 
     77<?xml version="1.0" encoding="UTF-8"?> 
     78<beans:beans xmlns="http://www.springframework.org/schema/beans" 
     79        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
     80        xmlns:beans="http://www.springframework.org/schema/beans" 
     81        xmlns:tx="http://www.springframework.org/schema/tx"  
     82        xmlns:context="http://www.springframework.org/schema/context" 
     83        xmlns:mvc="http://www.springframework.org/schema/mvc"  
     84        xmlns:util="http://www.springframework.org/schema/util" 
     85        xmlns:aop="http://www.springframework.org/schema/aop"  
     86        xmlns:arid="http://chrisrichardson.net/schema/arid" 
     87        xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd 
     88                http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd 
     89                http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd 
     90                http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd 
     91                http://www.springframework.org/schema/aop  
     92                http://www.springframework.org/schema/aop/spring-aop-2.0.xsd 
     93                http://chrisrichardson.net/schema/arid  
     94                http://chrisrichardson.net/schema/arid.xsd"> 
     95 
     96        <!-- db 관련 끝 --> 
     97        <util:properties id="db" location="classpath:db.properties"/> 
     98        <beans:bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"> 
     99                <beans:property name="driverClassName" value="#{db['db.driverClassName']}" /> 
     100                <beans:property name="url" value="#{db['db.url']}" /> 
     101                <beans:property name="username" value="#{db['db.username']}" /> 
     102                <beans:property name="password" value="#{db['db.password']}" /> 
     103        </beans:bean> 
     104         
     105        <!-- jdbc setting --> 
     106        <beans:bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate"> 
     107                <beans:property name="dataSource" ref="dataSource"/> 
     108        </beans:bean> 
     109         
     110        <beans:bean id="simplejdbcTemplate" class="org.springframework.jdbc.core.simple.SimpleJdbcTemplate"> 
     111                <beans:constructor-arg ref="dataSource"/> 
     112        </beans:bean>    
     113         
     114        <!-- ibatis setting --> 
     115        <beans:bean id="sqlMapClient" class="org.springframework.orm.ibatis.SqlMapClientFactoryBean"> 
     116                <beans:property name="dataSource" ref="dataSource"/> 
     117                <beans:property name="configLocation" value="WEB-INF/sqlMap/sqlMapConfig.xml"/> 
     118        </beans:bean> 
     119         
     120        <beans:bean id="sqlMapClientTemplate" class="org.springframework.orm.ibatis.SqlMapClientTemplate"> 
     121                <beans:property name="sqlMapClient" ref="sqlMapClient"/> 
     122        </beans:bean> 
     123         
     124        <!-- db 관련 끝 --> 
     125         
     126        <arid:define-beans package="com.everland.ws.sd.doremi.service" /> 
     127        <arid:define-beans package="com.everland.ws.mm.doremi.service" /> 
     128        <context:annotation-config /> 
     129        <context:component-scan base-package="com.everland" /> 
     130</beans:beans> 
     131 
     132}}}