Created
July 5, 2011 13:20
-
-
Save asoftwareguy/1064817 to your computer and use it in GitHub Desktop.
Blog - Spring PropertyPlaceholderConfigurer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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:util="http://www.springframework.org/schema/util" | |
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:p="http://www.springframework.org/schema/p" | |
xmlns:context="http://www.springframework.org/schema/context" | |
xsi:schemaLocation=" | |
http://www.springframework.org/schema/beans | |
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd | |
http://www.springframework.org/schema/util | |
http://www.springframework.org/schema/util/spring-util-2.5.xsd | |
http://www.springframework.org/schema/tx | |
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd | |
http://www.springframework.org/schema/context | |
http://www.springframework.org/schema/context/spring-context-2.5.xsd"> | |
<context:property-placeholder | |
location="classpath:coreconfig-${ENV_CODE}.properties, | |
classpath:appconfig-${ENV_CODE}.properties" /> | |
<!-- shortened for brevity --> | |
<bean id="paymentService" class="example.PaymentServiceImpl"> | |
<property name="checkoutService"> | |
<ref bean="checkoutServiceImpl" /> | |
</property> | |
<property name="proxyHost" value="${payment.proxy.host}" /> | |
<property name="proxyPort" value="${payment.proxy.port}" /> | |
</bean> | |
</beans> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment