如何使用@thymesVar处理集合? [英] How do I handle collections with @thymesVar?
本文介绍了如何使用@thymesVar处理集合?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我有:
<!--/*@thymesVar id="someCollection" type="java.util.List"*/-->
如何指定集合中的对象类型?
How would I specify the type of objects in the collection?
我在SO或Idea文档上看不到任何东西.
I don't see anything on SO or the Idea docs about it.
推荐答案
哦,就像在声明中指定类一样简单:
Oh, it's as simple as specifying the class in the declaration:
<!--/*@thymesVar id="someCollection" type="java.util.List<com.domain.my.Bean>"*/-->
这篇关于如何使用@thymesVar处理集合?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文