Guest User

Untitled

a guest
Dec 14th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. //Datasource connection settings in Spring
  2. <bean id="springDataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close" >
  3. <property name="url" value="jdbc:oracle:thin:@localhost:1521:SPRING_TEST" />
  4. <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver" />
  5. <property name="username" value="root" />
  6. <property name="password" value="root" />
  7. <property name="removeAbandoned" value="true"/>
  8. <property name="initialSize" value="20" />
  9. <property name="maxActive" value="30" />
  10. </bean>
  11.  
  12. //Dao class configuration in spring
  13.  
  14. <bean id="EmployeeDatabaseBean" class="com.test.EmployeeDAOImpl">
  15. <property name="dataSource" ref="springDataSource"/>
  16. </bean>
Add Comment
Please, Sign In to add comment