English 中文(简体)
Java财产档案的良好存放组织做法
原标题:Good repository organization practice for Java properties files

我维持一个多平台发展框架,试图根据某些系统和环境信息,通过各种手段推断环境变量。 一旦我用这些变量,我就将其储存在 Java财产档案中,供日后使用。 本档案也可由我的框架用户(开发商)编辑。

页: 1 Env,管理这一财产档案,并在称为org.myproject.config的一揽子计划中管理。 I m目前存放在src/org/myproject/config上的违约财产档案。 我不禁要问,在我的项目目录下存放一个组合式档案是否好? 不能确定在什么地方这样做。 欢迎任何意见。

-tjw

最佳回答
问题回答

根据我们的经验,环境方面的具体信息不应储存在一个存放处。 有些人误用档案,当他与其他用户/环境接触时,会受到影响。 我们在每个环境中保持环境组合的单独和局部。 就我们而言,环境变量储存在数据库表格中,我们在财产档案中掌握的唯一环境信息是建立亚行与环境变量所在地的联系所需的最低领域。 通过信息技术变革请求或通过软件升级更新环境。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签