/*** Get the value of the specified property in the configuration file * @ Param key attribute name in the configuration file * @ return returns the property value */protected string getproperty (string key) {string [] configvalue = getproperties (key); Return configvalue [0];} /*** get the corresponding values of all properties in the configuration file * @ return returns the array of the attribute name and value */protected string [] getproperties (string key) {string [] configvalue = NULL; try {compositeconfiguration Config = new compositeconfiguration (); config. addconfiguration (New xmlconfiguration ("AAA. XML "); config. addconfiguration (New xmlconfiguration ("BBB. XML "); configvalue = config. getstringarray (key);} catch (configurationexception e) {log. error ("read configuration file:", e); E. printstacktrace ();} return configvalue ;}