@Component
@ConditionalOnProperty(prefix="cc-spring.web",
name="enable-default-aspect",
havingValue="true",
matchIfMissing=true)
public class ControllerAspect
extends Object
| Constructor and Description |
|---|
ControllerAspect() |
| Modifier and Type | Method and Description |
|---|---|
Object |
around(org.aspectj.lang.ProceedingJoinPoint pjp,
org.springframework.web.bind.annotation.RestController restController) |
static void |
setNull(Object obj,
Class<?>[] clazz)
将对象obj中有 SetNull 注解的字段根据分组class设置空值
字段上的 SetNull 注解没有value参数时,该字段设置为空 字段上的 SetNull 注解有value参数时,参数包含了分组class中的任意一个class,该字段设置为空 |
Copyright © 2019. All rights reserved.