拓冰建站拓冰建站
首页 / 资讯中心 / 正文

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
分享:

看完干货,该让你的企业上线了

免费需求沟通 · 48 小时内出具建站方案 · 河南本地可上门