@Target(value=METHOD) @Retention(value=RUNTIME) @Documented public @interface FastJsonView
一个放置到Controller
方法上的注解. 设置返回对象针对某个类需要排除或者包括的字段 例如:@FastJsonView(exclude = {@FastJsonFilter(clazz = JSON.class,props = {"data"})})
Modifier and Type | Optional Element and Description |
---|---|
FastJsonFilter[] |
exclude |
FastJsonFilter[] |
include |
public abstract FastJsonFilter[] include
public abstract FastJsonFilter[] exclude
Copyright © 2012–2022 Alibaba Group. All rights reserved.