public WebConfig parse() throws Exception {
        SAXReader reader = new SAXReader();
        WebConfig config = new WebConfig();
        InputStream in = new FileInputStream(configFile);
        try {
            Document document = reader.read(in);
            Element root = document.getRootElement();
            if (root == null || !root.getName().equals(ROOT_ELEMENT)) {
                throw new InvalidConfigException("Root element is null or invalid."
                        + "It must be '" + ROOT_ELEMENT + "'");
            }
            List<Element> elements = root.elements();
            for (Element e : elements) {
                configure(config, e);
            }
        } finally {
            try {
                in.close();
            } catch (Throwable e2) {
                //
            }
        }
        return config;
    }
Parse website configure file information

@return    the website configure object
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/master/web/simplemvc/conf/ConfigFileParser.java