Remove class= attribute

随声附和 提交于 2019-11-27 07:37:53

The class Attribute tells Simple which implementation of List you use. If it's missing, Simple will look for a proper class itself.

One solution is to use ArrayList instead of List:

@ElementList
protected ArrayList<Element> elements;

Now Simple wont add the class-Attribute.

Another way:

@Path("elements")
@ElementList(inline=true)
protected List<Element> elements;

This inlines your List (no elements-Tag is used) but puts it into a "new" elements-Tag

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