本文介绍了如何使用“ map.get(key)”在Thymeleaf-阔叶Ecom的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个 Hashmap(字符串,列表< Offers>)
,已传递到Thymeleaf页面。我正在页面上获得此地图,并且可以访问它。
I have a Hashmap (String, List<Offers>)
, passed to a Thymeleaf page. I am getting this map on the page and I can access it.
我该怎么做 map.get(key)
和Thymeleaf?我只需要基于某个键来获取值,然后解析并打印该值,这我就知道并具有逻辑。
How can I do map.get(key)
with Thymeleaf? I just need to fetch the values based on a certain key and then parse and print that value, which I know and have the logic for.
我正在运行Broadleaf应用程序而Thymeleaf是它的UI引擎。
I am running a Broadleaf application and Thymeleaf is the UI engine for it.
推荐答案
您可以简单地使用 $ {map.get( 'key')}
这篇关于如何使用“ map.get(key)”在Thymeleaf-阔叶Ecom的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!