我在模型对象中有一个Set属性。Java:在ibatis中迭代一个集合
class AA{
Set x;
}
但是,当我尝试在ibatis xml文件中迭代Set时,出现以下异常。
The 'x' property of the AA class is not a List or Array.
这是存在于ibatis xml文件中的东西。
<iterate property="x" open="(" close=")" conjunction=",">
#x[]#
</iterate>
我在想什么?