添加通用验证操作

This commit is contained in:
zhh
2018-04-19 17:19:41 +08:00
parent 79c6602f2f
commit 3f2652545f
5 changed files with 48 additions and 19 deletions

View File

@@ -11,6 +11,7 @@ import org.aspectj.lang.annotation.*;
import org.aspectj.lang.reflect.MethodSignature;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
import org.springframework.util.ObjectUtils;
import org.springframework.util.StringUtils;
@@ -31,6 +32,7 @@ import java.util.*;
*/
@Aspect
@Component
@Order(1)
public class WebLogAspect {
private static final Logger LOGGER = LoggerFactory.getLogger(WebLogAspect.class);
private ThreadLocal<Long> startTime = new ThreadLocal<>();