convert properties file to hashmap in spring -


i need load of content of properties file looks this:

some.properties  key.1=this item needs loaded onto hashmap key.2=this item needs loaded onto hashmap key.3=this item needs loaded onto hashmap key.4=this item needs loaded onto hashmap 

i want know way in can load of content properties file onto hashmap. actual content present against every key lengthy, cannot make properties file abc=aa,bb,cc , load onto java class using @value annotation.

also, have around 40 keys in properties file. so, im trying use approach, dont want add @value annotation separately every value in java class.

as, on hashmap put in checks load keys , set parameters 1 one variables , pass further processing.

i tried lot of things load properties file , convert hashmap through spring, know can make use of property placeholder configurer load of properties file. however, how access content inside properties file in java class converting onto hashmap.

any highly appreciated.

thanks!

or don't understand question or simple:

properties props = new properties().load(new fileinputstream([properties_path])); map<string, string> map = new hashmap<string, string>(props); 

let's start here! maybe can more, if give more concrete info


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -