public static final List> merchantBanks = new ArrayList>() {
{
new HashMap() {
{
put("key1", "v1");
put("key2", "v2");
put("key3", "v3");
}
};
};
这样写不行。得到的是个空列表。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
少写个add();
写个工具方法吧