using properties within the properties file

前端 未结 5 1095
执念已碎
执念已碎 2020-12-17 02:14

I apologize for the title.. i couldn\'t find a better way to explain the situation.

I use to load properties file using a Property class as described in the URL http

5条回答
  •  醉酒成梦
    2020-12-17 02:51

    There is no direct way to substitute the property value within the property file/object but you may replace property value once you read via getProperty() method. To produce concatenated messages - have a look at MessageFormat class.

    String baseValue=prop.getProperty("url.main");
    

提交回复
热议问题