Subversion Repositories SmartDukaan

Rev

Rev 4500 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4500 Rev 4637
Line 16... Line 16...
16
     http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
16
     http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
17
     http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd
17
     http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd
18
     http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
18
     http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
19
     http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">
19
     http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">
20
 
20
 
21
    <context:property-placeholder location="classpath:jdbc.properties" />
-
 
22
 
-
 
23
    <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
21
    <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
24
        <!-- JDBC connection properties -->
22
        <!-- JDBC connection properties -->
25
        <property name="driverClassName" value="${jdbc.driverClassName}" />
23
        <property name="driverClassName" value="com.mysql.jdbc.Driver" />
26
        <property name="url" value="${jdbc.url}" />
24
        <property name="url" value="#{systemProperties['dbHost']}" />
27
        <property name="username" value="${jdbc.username}" />
25
        <property name="username" value="root" />
28
        <property name="password" value="${jdbc.password}" />
26
        <property name="password" value="shop2020" />
29
 
27
 
30
        <!-- Pool size related properties -->
28
        <!-- Pool size related properties -->
31
        <!-- The initial number of connections that are created when the pool is 
29
        <!-- The initial number of connections that are created when the pool is 
32
            started. -->
30
            started. -->
33
        <property name="initialSize" value="2" />
31
        <property name="initialSize" value="2" />