我需要在请求中将参数设置为“不需要”。
我试过:
@Get(value = "/list/{username}")
HttpResponse<?> list(String username, @QueryValue(value = "actionCode") String actionCode) {
...
}
Run Code Online (Sandbox Code Playgroud)
当我发送请求http://localhost:8080/notification/list/00000000000时,会引发以下错误:
{
"message": "Required Parameter [actionCode] not specified",
"path": "/actionCode",
"_links": {
"self": {
"href": "/notification/list/00000000000",
"templated": false
}
}
}
Run Code Online (Sandbox Code Playgroud) 我有一个如下工作的应用程序:有一个主要表单,它是用于注册,搜索等的开放子表单.目的是在主表单的中心始终打开子表单,无论其大小如何.为此我在表单son onCreate中使用以下代码:
formChild->Left=(MainForm->pnlMain->Width/2);
formChild->Top=(MainForm->pnlMain->Height/2)-(formChild->Height/2);
Run Code Online (Sandbox Code Playgroud)
到目前为止一切正确,表单正确居中,如下图所示:
子表单是在第一次生成的位置生成的(使用最大化窗口).