<?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="com.casic.accessControl.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>--> <!--<bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate" depends-on="databaseMigrator">--> <!--<property name="dataSource" ref="dataSource" />--> <!--</bean>--> <!--<bean id="databaseMigrator" class="com.casic.accessControl.core.dbmigrate.DatabaseMigrator">--> <!--<property name="dataSource" ref="dataSource"/>--> <!--<property name="applicationProperties" ref="applicationProperties"/>--> <!--</bean>--> <!--<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">--> <!--<property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE"/>--> <!--<property name="location" value="/application.properties"/>--> <!--</bean>--> <!--<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">--> <!--<property name="driverClassName" value="${db.default.driverClassName}" />--> <!--<property name="url" value="${db.default.url}" />--> <!--<property name="username" value="${db.default.username}" />--> <!--<property name="password" value="${db.default.password}" />--> <!--</bean>--> </beans>