Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
处理程序功能的新手 Q - 我如何解析路径中存在的动态参数,即 /path/{parameter} 在 handleRequest 方法中?我已经生成了一个基于 OpenAPI 规范的应用程序
String clientId = exchange.getQueryParameters().get("clientId").getFirst(); 我们基本上将路径参数规范化为处理程序模块中的查询参数。