try {
 PropertyResourceBundle configBundle = (PropertyResourceBundle)PropertyResourceBundle.getBundle("config"); //这样调用config.properties文件
            server_ip = configBundle.getString("Server"); //得到其中的一个设置
            name = configBundle.getString("name");//得到其中的一个设置
        }
        catch(Exception ex) {
               System.out.println(" unable to find string ");
        }