sk.2.0.2.source-code.task-client-spring-config.xml Maven / Gradle / Ivy
<?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:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> <bean id="taskDatasource" class="org.apache.tomcat.jdbc.pool.DataSource"> <property name="driverClassName" value="${task.datasource.driverClassName}" /> <property name="url" value="${task.datasource.url}" /> <property name="username" value="${task.datasource.username}" /> <property name="password" value="${task.datasource.password}" /> </bean> <bean class="com.cehome.task.TimeTaskFactory"> <property name="dataSource" ref="taskDatasource" /> </bean> <bean class="com.cehome.task.TimeTaskClient"> </bean> </beans>