How do I handle collections with @thymesVar?

落花浮王杯 提交于 2020-05-12 04:38:28

问题


If I have:

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

How would I specify the type of objects in the collection?

I don't see anything on SO or the Idea docs about it.


回答1:


Oh, it's as simple as specifying the class in the declaration:

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



来源:https://stackoverflow.com/questions/48511677/how-do-i-handle-collections-with-thymesvar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!