|
@@ -30,6 +30,7 @@ import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import java.lang.reflect.Method;
|
|
|
import java.util.Arrays;
|
|
|
+import java.util.HashMap;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -65,9 +66,13 @@ public class IpSaveAspect {
|
|
|
IpSave ipSave = method.getAnnotation(IpSave.class);
|
|
|
// 访问名 注解的值
|
|
|
String s = ipSave.saveName();
|
|
|
-
|
|
|
+ HashMap<String, Object> stringObjectHashMap = new HashMap<>();
|
|
|
+ stringObjectHashMap.put("ip",remoteAddr);
|
|
|
+ stringObjectHashMap.put("uri",requestURI);
|
|
|
+ stringObjectHashMap.put("param",queryString);
|
|
|
+ stringObjectHashMap.put("ipSave",s);
|
|
|
//异步给mq存
|
|
|
- toolsFeign.sendCommonMessage("IpSave","你好",null,null,1,null,null);
|
|
|
+ toolsFeign.sendCommonMessage("IpSave",stringObjectHashMap.toString(),null,1,1,null,null);
|
|
|
|
|
|
return joinPoint.proceed();
|
|
|
}
|