ARTICLE DETAIL

资讯详情

深耕郑州网站建设与运营推广的一线实战洞察。

BmcWeb:app.run

BmcWeb:app.run 1.导入持久化数据persistent_data::getConfig(); inline ConfigFile getConfig() { static ConfigFile f; return f; } class ConfigFile { uint64_t jsonRevision = 1; public: // todo(ed) should read this from a fixed location somewhere, not CWD static constexpr const char* filename = "bmcweb_persistent_data.json"; ConfigFile() { readData(); } void readData() { ... } };从~/bmcweb_persistent_data.json 读取持久化数据2.导入各种路由int run() { ... if constexpr (BMCWEB_REDFISH) { redfish::RedfishService::getInstance(app); // Create EventServiceManager instance and initialize Config red
返回列表