註冊
Login
»
forum
» Map with placeholders in Spring context file
Back Forum
Reply
New
Post Thread
Post Poll
Post Reward
Post Debate
Post Activity
Post Video
Post Trade
amy
Send PM
Add buddy
amy
Thread
86984
Digest
0
Last Visit
2011-4-15
1
#
Print
Size:
t
T
Post at 2011-4-15 15:44
|
This Author's Posts Only
Map with placeholders in Spring context file
like
,
something
,
possible
,
achieve
In a Spring context file is it possible to configure the values in a map using placeholders? What I want to achieve is something like this:
lt;mapgt; lt;entry key=quot;0quot; value=quot;${value.0}quot; /gt; lt;entry key=quot;1quot; value=quot;${value.1}quot; /gt; lt;entry key=quot;2quot; value=quot;${value.2}quot; /gt;
lt;/mapgt;
then in a referenced properties file define
value.0=123
value.1=234
value.2=345
Or should I use value-ref=quot;some-beanquot; and then put the placeholder in the name attribute of some-bean?
This Thread is Moderate by root at 2011-4-25 07:49 Move
Favor
Share
Rate
Reply
Quote
Subscribe
TOP
¥
wrapping threads in transaction
Composite unique constraints
AbstractWizardFormController: on click choose whether to finish or not
Session-scoped beans
Message (with EL) from MessageSource access from mvc.Controller
Top List:
What is the best way to transfer object between controllers?
STS and Ubuntu 9.10 Bug
what is the best way to exchange openid4java with dyuproject
Spring-DOJO dojox.data.DataGrid
Spring 3.0 quot;formquot; annotated controller help
global method security amp; traditional bean xml config
Spring + Hibernate: CannotLoadBeanClassException DAO
Incorrect ${flowExecutionucl}
How to log transitions
Command Object Same in onSubmit as Set in formBackingObject
Annotation for quot;factory-method=quot; xml ?
Possible solution for multiple datasources?
spring-javaconfig not compatible with spring-beans 3.0.0.RC1
Dowload spring module and dependency
Access session in Porlet
SPring + JPA +JBOSS Persistence Unit error
Cloud Foundry Grails plugin released
from 500 error in springWebflow
from 500 error in springWebflow
Allowing access by reauthentication
Back Forum
Reply
New