在 Docker 容器中处理应用程序配置

该规则将检测打包在应用程序中的属性文件,并引用 java.util.Properties 上的 loadloadFromXML 方法。最好的做法是将配置外部化,以便将其注入容器中。

有关更多信息,请参阅 Using variables in configuration files Store config in the environment