我上传了一个项目,其中有multi-containers docker platform两个容器,例如xyz和。其中包含tomcat服务器。我的项目中有以下文件配置。abcaws elastic-beanstalkxyzDockerrunner.aws.json
{
"AWSEBDockerrunVersion": 2,
"containerDefinitions": [
{
"name": "xyz",
"image": "<PLACEHOLDER_REPLACED_BY_CICD_TOOLS>",
"essential": true,
"memory": 2048,
"links": [
"abc"
],
"environment": [
{
"name": "ENVIRONMENT",
"value": "QA"
},
{
"name": "LOG_HOME",
"value": "/usr/local/tomcat/logs"
},
.
.
.
],
"mountPoints": [
{
"sourceVolume": "awseb-logs-xyz",
"containerPath": "/usr/local/tomcat/logs"
}
],
.
.
},
{
"name": "abc",
"image": "image123",
"essential": true,
.
.
.
}
]
}
Run Code Online (Sandbox Code Playgroud)
但是,我无法查看 elastic-beanstalk 的健康部分中的数据。

到目前为止我为解决这个问题所做的事情:
我在网页中集成" tui-editor-1.0.3 " 时遇到了困难.
它抛出一个错误:"Uncaught TypeError: Cannot read property 'scrollIntoView' of undefined"
错误的来源是在行号19122的tui-Editor-editor.js,其中存在 null在值this._currentButton和它试图访问this._currentButton.scrollIntoView().
我试图null在访问之前检查值this._currentButton.scrollIntoView,但是它没有生成适当的编辑器视图.
如何确保this._currentButton始终不能为空?或者,任何其他解决方案?
我正在设计一个 DynamoDB 数据库表。例如test_table,在一张表中,我定义了一个组合键,其中包含一个分区键(比如)partition_id和一个排序键(比如)sort_id。双方partition_id并sort_id可能在他们的条目一些重复的值,但两者的结合partition_id,并sort_id一起将永远是独一无二的。
我想知道,如何有效的是具有一些共有的记录检索partition_id,说partition_id = x?
model.DepartmentsList = list;
model.DepartmentsListJson = JsonConvert.SerializeObject(model.DepartmentsList);
Run Code Online (Sandbox Code Playgroud)
返回这个JSON:
"[{\"DeptNo\":\"d006\",\"DeptName\":\"Production\",\"FromDate\":null,\"ToDate\":null},{\"DeptNo\" :\"d007\",\"DeptName\":\"Sales\",\"FromDate\":null,\"ToDate\":null},{\"DeptNo\":\"d009\",\ "DeptName\":\"Customer Service\",\"FromDate\":null,\"ToDate\":null},{\"DeptNo\":\"d021\",\"DeptName\":\" DEV\",\"FromDate\":null,\"ToDate\":null},{\"DeptNo\":\"d022\",\"DeptName\":\"Human Resources 5\",\" FromDate\":null,\"ToDate\":null},{\"DeptNo\":\"d023\",\"DeptName\":\"Human Resources 6\",\"FromDate\":null,\"ToDate\":null},{\"DeptNo\":\"d024\",\"DeptName\":\"Human Resources 7\",\"FromDate\":null,\"ToDate\ “:空值}]”
(忽略空值)。当我尝试在 javascript 中解析它时
var departmentsList = JSON.parse(@Model.DepartmentsListJson);
Run Code Online (Sandbox Code Playgroud)
我收到以下消息:
Uncaught SyntaxError: Unexpected token &
Run Code Online (Sandbox Code Playgroud)
我应该使用什么来JSON从我的C#代码中返回一个有效的字符串?
javascript ×2
.net ×1
asp.net-core ×1
c# ×1
cloud ×1
docker ×1
jquery ×1
json ×1
nosql ×1
tui ×1