Serialization third-party classes with Simple XML (org.simpleframework.xml)

后端 未结 3 1592
鱼传尺愫
鱼传尺愫 2021-02-04 04:32

I have decided to use Simple XML serialization and was stucked with basic problem. I am trying to serialize java.util.UUID class instance as final field in this sma

3条回答
  •  抹茶落季
    2021-02-04 05:20

    I think i have the answer to this.

    Strategy strategy = new AnnotationStrategy();
    Serializer serializer = new Persister(strategy);
    

    should register the converter and solve the problem.

提交回复
热议问题