I searched but cannot find these steps. Hope I miss something obvious.
I have a properties file with the following contents:
machines=A,B
I have another file similar to this one but having a different number of elements in the machine element, for example:
machines=B,C,D
My question is how to load this variable variable machine variable into a bean in my spring configuration in a general way?
something like that:
<property name="machines" value="${machines}"/>
where machines is an array or list in my java code. I can define it, but I want to, can I understand how to do it.
Basically, I would prefer spring to parse and bind each value to a list item instead of having to write something that is read on the full line of the machine and independently parse (with a comma separator) each value into an array or list. Is there an easy way to do this that I am missing?
spring dynamic javabeans
bob Mar 11 2018-11-11T00: 00Z
source share