应用程序通过将所有属性值初始化为属性内包含的值启动并读取属性文件。
The application starts and reads the properties file by initializing all the property values to the values contained within.
因此,当用户更改任意的单个属性值时,所有的属性值都应该在转换配置中进行设置。
Therefore, when the user changes any single property value all the property values would be set in the transformation configuration.
清单2显示了用于装入属性文件、获得属性值和把值显示到控制台的典型代码。
Listing 2 shows the typical code for loading a properties file, obtaining property values, and displaying the values to the console.
应用推荐