How to serialize a Map using Simple XML?

前端 未结 1 421
自闭症患者
自闭症患者 2021-01-18 15:05

How would you go about serialising a Map using simple XML so that it looks something like:

key

Inste

相关标签:
1条回答
  • 2021-01-18 15:34

    Have you tried something like:

    @ElementMap(entry="property", value="value", attribute=true, inline=true)
    private Map<String, String> map;
    

    or some combination, i.e. to use the other attributes of the @ElementMap annotation too?

    0 讨论(0)
提交回复
热议问题