com.ijson.rest.proxy.annotation.CDATA Maven / Gradle / Ivy
package com.ijson.rest.proxy.annotation;
import java.lang.annotation.*;
/**
*
* When interacting with the server interface, if the server wants an XML type of message,
* and there are too many special characters in our message, we need to add a CDATA tag at
* this time. The purpose of this annotation is that Of the addition of this annotation in
* your field, the generated XML will automatically add @CDATA
tag, of course, it needs and
* XmlUtil.toXml (Object obj)
*
* Created by cuiyongxu on 17/7/16.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@Documented
public @interface CDATA {
boolean CDATA() default false;
String desc() default "";
}