All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.leopard.json.serialize.FieldDetail Maven / Gradle / Ivy

Go to download

规范、简化Json操作,可选Jackson、FastJson实现。并可在TopNB查看耗时统计信息。

The newest version!
package io.leopard.json.serialize;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

/**
 * 属性详情信息
 * 
 * @author 谭海潮
 *
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.FIELD })
@JacksonAnnotationsInside
@JsonSerialize(using = FieldDetailJsonSerializer.class)
public @interface FieldDetail {

	/**
	 * 序列化类名
	 */
	String className() default "";

	Class using() default JsonSerializer.None.class;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy