달력

102018  이전 다음

  •  
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  •  
  •  
  •  

springframework.org 보다가 배낌

 

 

  <bean id="propertyConfigure"

      class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
    <property name="locations">
      <list>
        <value>WEB-INF/jdbc.properties</value>
      </list>
    </property> 
  </bean>

 

  <bean id="dataSource"
     class = "org.apache.commons.dbcp.BasicDataSource">   
   <property name="driverClassName" ><value>${jdbc.driver}</value></property>
   <property name="url"><value>${jdbc.url}</value></property>
   <property name="username"><value>${jdbc.user}</value></property>
   <property name="password"><value>${jdbc.password}</value></property>
  </bean>
 

ㅋ.. 편리하군... 설정으로 끝나다뉘~~

Posted by Tornado tornado