简体   繁体   English

用于管理多个Web应用程序配置的工具

[英]Tools for managing configuration of multiple web applications

We have several Spring MVC and Metro based applications which communicates with each other. 我们有几个基于Spring MVC和Metro的应用程序可以相互通信。 Their settings are currently stored in multiple property files, that are made available to apps via PropertyPlaceholderConfigurer . 它们的设置当前存储在多个属性文件中,可通过PropertyPlaceholderConfigurer将其提供给应用程序。 This is not convenient because configuration is scattered and some parts of it is duplicated among servers. 这是不方便的,因为配置分散并且服务器中的某些部分重复。 Currently we are going to create another webapp which is known to every other app and which keeps this whole configuration and provides an interface that allows to request these properties as key-values pairs. 当前,我们将创建另一个Web应用程序,该应用程序为其他所有应用程序所熟悉,并保持整个配置并提供一个接口,该接口允许将这些属性作为键值对进行请求。 Is there any out-of-the box solution of this kind? 有没有这种现成的解决方案? Or, probably, is there a better way for solving this problem? 或者,也许有解决此问题的更好方法?

Do you need hot configuration, or just on startup? 您需要热配置还是仅在启动时? If its just on startup, I would do it by some kind of version control system like svn. 如果它只是在启动时,我会通过诸如svn之类的版本控制系统来实现。 So when app starts, it makes a call to svn to get the latest config. 因此,当应用启动时,它会调用svn以获取最新的配置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM