Each file has a default name, a set of file search locations, and a default system property that you can override.
To use the default specification, put the file at the top level of its directory or jar file, the system property is the standard file specification, which has an absolute or relative pathname and filename.
Note: If you do not specify an absolute file path private path and name, search will check all search locations to find the file.
The default file specification is the relative file specification lookup location file specification available properties
gemfire.properties |
|
As a java system property, usegemfirePropertyFile |
cache.xml |
|
In gemfire.properties中 , use cache-xml-file attribute |
Invalid gemfirePropertyFile
specification example:
/zippy/users/jpearson/gemfiretest/gemfire.properties
c:\gemfiretest\gemfire.prp
myGF.properties
test1/gfprops
For test1/gfprops
specification, if you /testDir
run , Geode looks for files in the following order until it either finds the file or searches all locations.
/testDir/test1/gfprops
<yourHomeDir>/test1/gfprops
-
在你类路径中的所有位置查找
test1/gfprops