Does java.util.Properties support nested properties?

I am trying to set the environment properties in a file configured for each device using the code. I would like to be able to nest some properties in others, for example:

browser=chrome
baseUrl=${server}/app/login.do
server=http://localhost

I would like to receive http://localhost/app/login.dowhen I receive the property baseUrl.

Does this support java.util.Propertiesthis behavior? If not, is there another main class?

+4
source share
1 answer

Answer No. java.util.Properties only works with strings.

Each key and its corresponding value in the property list is a string. (From Javadok)

: Java , / Java . Configafe Config.

+1

All Articles