1
在下面的代碼片段PropertyPlaceholderConfigurer並依賴上
<bean id="placeholderProperties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
depends-on="environment">
<property name="location" value="classpath:batch-${ENVIRONMENT}.properties" />
什麼是「依賴式」以及如何操作的$ {}環境的價值意義?
是指環境變量中系統變量的環境?
之前初始化的ID爲
environment
的bean是有沒有在上下文中定義名稱爲「environment」的bean? – 2011-05-23 10:32:44