All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.litongjava.tio.boot.satoken.SaAnnotationInterceptor Maven / Gradle / Ivy

There is a newer version: 1.8.6
Show newest version
package com.litongjava.tio.boot.satoken;

import com.litongjava.jfinal.aop.Interceptor;
import com.litongjava.jfinal.aop.Invocation;

import cn.dev33.satoken.strategy.SaStrategy;

/**
 * 注解式鉴权 - 拦截器
 */
public class SaAnnotationInterceptor implements Interceptor {
  @Override
  public void intercept(Invocation invocation) {
    SaStrategy.instance.checkMethodAnnotation.accept((invocation.getMethod()));
    invocation.invoke();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy