com.litongjava.tio.boot.satoken.SaAnnotationInterceptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tio-boot Show documentation
Show all versions of tio-boot Show documentation
Java High Performance Web Development Framework
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