I have a properties file like this:
my.properties file:
app.One.id=1
app.One.val=60
app.Two.id=5
app.Two.val=75
And I read these values into a
Maybe I did not fully understand the issue here...
What about a simplified approach?
my.properties file:
1=60
5=75
Application Context
classpath: my.properties
Java Bean
public class MyClass {
private Map myMap;
public void setMyMap(Map myMap) {
this.myMap = myMap;
}
public Map getMyMap(){
return myMap;
}
}