Is it bad practice to include properties/configuaration files within jars?

前端 未结 11 994
谎友^
谎友^ 2021-02-07 00:34

For example:

MyApp is a web app that contains a properties file (server.properties) that describes config data (e.g. server names) for the app. In the development phase

11条回答
  •  粉色の甜心
    2021-02-07 00:50

    D.

    Load the properties in the jar. Then create a new Properties using the jar-ed properties as the defaults. Then load from outside the jar. This allows select customization of properties.

提交回复
热议问题