This question is not specifically related Git. I want to create a properties/configuration file in Java with groups (similar to .gitconfig). For example, I want to group the properties as follows
[group1]
prop1=value1
prop2=value2
[group2]
prop1=value1
prop3=value3
Instead of
group1.prop1=value1
group1.prop2=value2
group2.prop1=value1
group2.prop3=value3
I researched internet thoroughly but didn't find anything related to grouping of properties. May be I am not searching with right keywords. Excuse me if I may have missed something online.
Thanks