我想通过考虑private static final String MASTER_DATASOURCE_PREFIX = "master.datasource.";
//这么拼接的目的何在???
// Why directly write code like ‘master.datasource.jdbc-url’ instead of following codings
@Value("${" + MASTER_DATASOURCE_PREFIX + "jdbc-url}")
private String masterDbUrl;
而不是考虑数组std
来编辑对象数组中的特定对象。数组如下
unique_lock
我想通过如上所述的id
来编辑关注对象。
index
此对象应更改为此。
data_list = [
{
{
id: "001"
name: "george",
age : 20,
address: "new york"
},
{
id: "002"
name: "mavan",
age : 23,
address: "new york"
},
{
id: "003"
name: "chris",
age : 25,
address: "melborn"
},
{
id: "004"
name: "jerry",
age : 26,
address: "dubai"
}
}
]
然后最终数组应该如下。
id
那我该怎么办