Skip to content

Instantly share code, notes, and snippets.

@asoftwareguy
Created July 5, 2011 13:20
Show Gist options
  • Save asoftwareguy/1064817 to your computer and use it in GitHub Desktop.
Save asoftwareguy/1064817 to your computer and use it in GitHub Desktop.
Blog - Spring PropertyPlaceholderConfigurer
<?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