admin
2019-12-28 64a8f7a3be0a5584fe2164a2474b189c79cfab5c
fanli/src/main/java/com/yeshi/fanli/aspect/RequestSerializableAspect.java
@@ -1,6 +1,5 @@
package com.yeshi.fanli.aspect;
import java.io.IOException;
import java.io.PrintWriter;
import java.lang.reflect.Method;
import java.util.HashMap;
@@ -63,7 +62,7 @@
   }
   @Around("execution(public * com.yeshi.fanli.controller.client.*.*.*(..))")
   public Object requestSerializable(ProceedingJoinPoint joinPoint) throws IOException {
   public Object requestSerializable(ProceedingJoinPoint joinPoint) throws Throwable {
      Signature signature = joinPoint.getSignature();
      MethodSignature methodSignature = (MethodSignature) signature;
      Method targetMethod = methodSignature.getMethod();
@@ -125,9 +124,6 @@
                     if (!StringUtil.isNullOrEmpty(result)) {
                        try {
                           return joinPoint.proceed();
                        } catch (Throwable e) {
                           e.printStackTrace();
                           LogHelper.errorDetailInfo(e);
                        } finally {
                           jedis.del(cacheKey);
                           Constant.waitingThreadSet.remove(Thread.currentThread().getId());
@@ -138,12 +134,7 @@
                  }
               }
            } catch (Exception e) {// 原子性保护出错
               try {
                  return joinPoint.proceed();
               } catch (Throwable e1) {
                  e.printStackTrace();
                  LogHelper.errorDetailInfo(e1);
               }
            }
         }