提交 328ea220 authored 作者: malei's avatar malei

feat(DataLog): 日志切面

1.切入点限制get请求 References: N/A
上级 b561695f
...@@ -44,9 +44,8 @@ public class WebLogAspect { ...@@ -44,9 +44,8 @@ public class WebLogAspect {
* @param apiOperation swagger注解 * @param apiOperation swagger注解
* @return * @return
* @throws Throwable * @throws Throwable
* && @annotation(org.springframework.web.bind.annotation.PostMapping
*/ */
@Around(value = "execution(* com.zrqx..controller..*.*(..)) && @annotation(apiOperation) )") @Around(value = "execution(* com.zrqx..controller..*.*(..)) && @annotation(apiOperation) && @annotation(org.springframework.web.bind.annotation.PostMapping)")
public Object doAround(ProceedingJoinPoint joinPoint, ApiOperation apiOperation) throws Throwable { public Object doAround(ProceedingJoinPoint joinPoint, ApiOperation apiOperation) throws Throwable {
try { try {
//获取当前请求对象 //获取当前请求对象
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论