Menu

#2 'config:enviroment' tag

open
nobody
None
5
2007-09-26
2007-09-26
No

'config:enviroment' tag loads beans enviroment-based.
For example:

<config:enviroments default="production">
<config:enviroment name="development">
<prop key="myDataSource">developmentDataSource</prop>
</config:enviroment>
<config:enviroment name="production">
<prop key="myDataSource">productionDataSource</prop>
</config:enviroment>
</config:enviroments>

<bean name="dependsOnDataSource" class="...">
<property name="dataSource" ref="myDataSource"/>
</bean>

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.