0
点赞
收藏
分享

微信扫一扫

登录拦截验证token

mm_tang 2022-01-04 阅读 45
springjava
package com.futuredata.web.portrait.aspect;

import com.futuredata.web.portrait.login.utils.MemoryCache;
import com.futuredata.web.portrait.pojo.Response;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author: rui.wang
 * @Date: 2019/11/14
 */
@Component
@Aspect
public class loginAspect {

    @Pointcut("within(com.futuredata.web.portrait.controller.*) && !within(com.futuredata.web.portrait.login.api.*) && !execution(public * com.futuredata.web.portrait.controller.CompareAnalysisViewApi.exportAbilityCompareData(..)) && !execution(public * com.futuredata.web.p
举报

相关推荐

0 条评论