From 93a378adde6b60c445c486e6f1989b7b11dff978 Mon Sep 17 00:00:00 2001 From: Costin Leau <cleau@vmware.com> Date: Thu, 26 Nov 2009 20:56:30 +0000 Subject: [PATCH] SPR-6447 + fixed tab/spaces consistency --- .../WEB-INF/applicationContext-dataSource.xml | 16 ++++++++-------- .../webapp/WEB-INF/applicationContext-jpa.xml | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/main/webapp/WEB-INF/applicationContext-dataSource.xml b/src/main/webapp/WEB-INF/applicationContext-dataSource.xml index cf655c5f..39588588 100644 --- a/src/main/webapp/WEB-INF/applicationContext-dataSource.xml +++ b/src/main/webapp/WEB-INF/applicationContext-dataSource.xml @@ -11,13 +11,13 @@ http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc.xsd"> - <!-- ========================= DATASOURCE DEFINITION ========================= --> - + <!-- ========================= DATASOURCE DEFINITION ========================= --> + <!-- Configurer that replaces ${...} placeholders with values from a properties file --> <!-- (in this case, JDBC-related settings for the dataSource definition below) --> <context:property-placeholder location="classpath:jdbc.properties"/> - <!-- DataSource configuration for Apache Commons DBCP. --> + <!-- DataSource configuration for Apache Commons DBCP. --> <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close" p:driverClassName="${jdbc.driverClassName}" p:url="${jdbc.url}" p:username="${jdbc.username}" p:password="${jdbc.password}"/> @@ -29,9 +29,9 @@ <!-- Database initializer. If any of the script fails, the initialization stops. --> <!-- As an alternative, for embedded databases see <jdbc:embedded-database/>. --> - <jdbc:initialize-database data-source="dataSource"> - <jdbc:script location="${jdbc.initLocation}"/> - <jdbc:script location="${jdbc.dataLocation}"/> - </jdbc:initialize-database> + <jdbc:initialize-database data-source="dataSource"> + <jdbc:script location="${jdbc.initLocation}"/> + <jdbc:script location="${jdbc.dataLocation}"/> + </jdbc:initialize-database> -</beans> \ No newline at end of file +</beans> \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/applicationContext-jpa.xml b/src/main/webapp/WEB-INF/applicationContext-jpa.xml index 03ff7645..08035111 100644 --- a/src/main/webapp/WEB-INF/applicationContext-jpa.xml +++ b/src/main/webapp/WEB-INF/applicationContext-jpa.xml @@ -13,9 +13,9 @@ <!-- ========================= RESOURCE DEFINITIONS ========================= --> - <!-- import the dataSource definition --> - <import resource="applicationContext-dataSource.xml"/> - + <!-- import the dataSource definition --> + <import resource="applicationContext-dataSource.xml"/> + <!-- Activates a load-time weaver for the context. Any bean within the context that implements LoadTimeWeaverAware (such as LocalContainerEntityManagerFactoryBean) @@ -27,7 +27,7 @@ <!-- (in this case, JDBC-related settings for the JPA EntityManager definition below) --> <context:property-placeholder location="classpath:jdbc.properties"/> - <!-- JPA EntityManagerFactory --> + <!-- JPA EntityManagerFactory --> <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean" p:dataSource-ref="dataSource"> <property name="jpaVendorAdapter"> -- GitLab