<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd"> <tx:annotation-driven proxy-target-class="true"/> <!--<bean id="dataSourceService" class="org.flume.alarm.core.jdbc.DataSourceServiceFactoryBean">--> <!--<property name="properties" ref="applicationProperties"/>--> <!--<property name="defaultPrefix" value="db"/>--> <!--</bean>--> <!--<bean id="dataSource" factory-bean="dataSourceService" factory-method="getDataSource"/>--> <!--<bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">--> <!--<property name="dataSource" ref="dataSource"/>--> <!--</bean>--> </beans>