【发布时间】:2011-12-09 11:34:44
【问题描述】:
在我的 Java 类中说 Props.java File 。 我有这个静态块,如图所示
static
{
instanceName = System.getProperty("bayer.instanceName");
systemPath = System.getProperty("bayer.home");
if (systemPath == null)
systemPath = ".";
propsFile = new File(System.getProperty("bayer.home") + File.separator + "bayer.properties");
}
请告诉我这些属性bayer.instanceName 和bayer.home 将在哪里定义?? 有关更多信息,我正在使用 Apache Tomcat 6.0 服务器和 Linux 环境。
【问题讨论】:
-
这个是那个的副本吗? stackoverflow.com/questions/8445488/…
标签: java tomcat properties