以下のようなハッシュマップがあります
HashMap<String, String> map = new HashMap<String, String>();
map.put("one", "1");
map.put("two", "2");
map.put("three", "3");
Map root = new HashMap();
root.put("hello", map);
私の Freemarker テンプレートは次のとおりです。
<html><body>
<#list hello?keys as key>
${key} = ${hello[key]}
</#list>
</body></html>
目標は、生成している HTML にキーと値のペアを表示することです。私がそれをするのを手伝ってください。ありがとう!