实现HTTP服务架构

This commit is contained in:
lixiaoyuan
2025-08-31 14:38:53 +08:00
parent 4af4e670d2
commit e0b64a20c4
46 changed files with 1436 additions and 545 deletions

View File

@@ -1,4 +1,6 @@
#include <nlohmann/json.hpp>
#pragma once
#include <nlohmann/json.hpp>
#include <fstream>
#include <memory>
#include <iostream>
@@ -68,7 +70,7 @@ public:
}
catch (nlohmann::json::parse_error& e)
{
std::cout << "JSON parse error: " << e.what() << std::endl;
std::cout << "JSON parse error: " << e.what() << "\n" << jsonstr << std::endl;
return false;
}
return true;