1.map

在后端放入一个map

Map<String, String> mapDict = serviceBaseDict.selectMap(ConstantDictType.SYSINFO);
model.addAttribute("mapDict", mapDict);

在页面中访问这个map

<b th:value="${mapDict['sysInfo’]}">系统标题</b>

也可以这样访问:

<b th:value="${mapDict.get('sysInfo’)}">系统标题</b>

相关文章:

  • 2022-12-23
  • 2022-01-10
  • 2021-07-13
  • 2021-07-15
  • 2022-01-25
  • 2022-12-23
  • 2021-07-27
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-20
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案