System.getProperty("ucity.PropsFile","a.properties"),只是想得到这个配置的文件名,具体怎么照这个文件你要看他的代码了。一般是通过classpath查找的,你可以放在web-inf/classes或者web-inf/lib下面试试看

解决方案 »

  1.   

    getProperty
    public static String getProperty(String key,
                                     String def)Gets the system property indicated by the specified key. 
    First, if there is a security manager, its checkPropertyAccess method is called with the key as its argument. If there is no current set of system properties, a set of system properties is first created and initialized in the same manner as for the getProperties method. 
    Parameters:
    key - the name of the system property.
    def - a default value. 
    Returns:
    the string value of the system property, or the default value if there is no property with that key.