Commit 5d2c8b2b by 陈健智

调整事件详情页的日志不做记录

parent 2fb00468
...@@ -43,10 +43,11 @@ public class AopLogRecord { ...@@ -43,10 +43,11 @@ public class AopLogRecord {
@Resource(name = "behaviorDao") @Resource(name = "behaviorDao")
private BehaviorDao behaviorDao; private BehaviorDao behaviorDao;
private static final List<String> URL_PATTERNS = Arrays.asList("/getNewAll", "/getNew", "/schedule"); private static final List<String> URL_PATTERNS = Arrays.asList("/getNewAll", "/getNew", "/schedule", "/app/event/detail/baseInfo", "/app/event/detail/dissemination-trends",
"/app/event/detail/channel-voices", "/app/event/detail/top-articles-analysis");
@Before("execution(public * com..controller..admin..*Controller.*(..)) || execution(* com..controller..app..*Controller.*(..))") @Before("execution(public * com..controller..admin..*Controller.*(..)) || execution(* com..controller..app..*Controller.*(..))")
private void beforeLog(JoinPoint joinPoint) throws UnknownHostException, ClassNotFoundException, NoSuchMethodException { private void beforeLog(JoinPoint joinPoint) throws UnknownHostException, ClassNotFoundException{
long now = System.currentTimeMillis(); long now = System.currentTimeMillis();
// RequestContextHolder 顾名思义 持有 request 上下文的容器 // RequestContextHolder 顾名思义 持有 request 上下文的容器
ServletRequestAttributes requestAttributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes(); ServletRequestAttributes requestAttributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment