mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 20:25:50 +00:00
Allow to override data-access.properties with System Properties
This commit is contained in:
parent
c13f141251
commit
8c5bbed6d0
2 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
<!-- Configurer that replaces ${...} placeholders with values from a properties file -->
|
<!-- Configurer that replaces ${...} placeholders with values from a properties file -->
|
||||||
<!-- (in this case, JDBC-related settings for the JPA EntityManager definition below) -->
|
<!-- (in this case, JDBC-related settings for the JPA EntityManager definition below) -->
|
||||||
<context:property-placeholder location="classpath:spring/data-access.properties"/>
|
<context:property-placeholder location="classpath:spring/data-access.properties" system-properties-mode="OVERRIDE"/>
|
||||||
|
|
||||||
<!-- enables scanning for @Transactional annotations -->
|
<!-- enables scanning for @Transactional annotations -->
|
||||||
<tx:annotation-driven />
|
<tx:annotation-driven />
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
<!-- Configurer that replaces ${...} placeholders with values from a properties file -->
|
<!-- Configurer that replaces ${...} placeholders with values from a properties file -->
|
||||||
<!-- (in this case, JDBC-related settings for the dataSource definition below) -->
|
<!-- (in this case, JDBC-related settings for the dataSource definition below) -->
|
||||||
<context:property-placeholder location="classpath:spring/data-access.properties"/>
|
<context:property-placeholder location="classpath:spring/data-access.properties" system-properties-mode="OVERRIDE"/>
|
||||||
|
|
||||||
<!-- DataSource configuration for the tomcat jdbc connection pool
|
<!-- DataSource configuration for the tomcat jdbc connection pool
|
||||||
See here for more details on commons-dbcp versus tomcat-jdbc:
|
See here for more details on commons-dbcp versus tomcat-jdbc:
|
||||||
|
|
Loading…
Reference in a new issue