pom.xml
<!-- spring-boot-starter-aop -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
</dependency>
HttpAspect 类
package com.wangh.aspect;
import javax.servlet.http.HttpServletRequest;
import org.aspectj.lang.JoinPoint