如何使用@thymesVar 处理集合?

vph*_*nyc 9 intellij-idea thymeleaf

如果我有:

<!--/*@thymesVar id="someCollection" type="java.util.List"*/-->

我将如何指定集合中的对象类型?

我在 SO 或有关它的 Idea 文档上没有看到任何内容。

vph*_*nyc 14

哦,就像在声明中指定类一样简单:

<!--/*@thymesVar id="someCollection" type="java.util.List<com.domain.my.Bean>"*/-->