io.github.novareseller.boot.annotation.UserSign Maven / Gradle / Ivy
package io.github.novareseller.boot.annotation;
import com.github.lianjiatech.retrofit.spring.boot.annotation.InterceptMark;
import com.github.lianjiatech.retrofit.spring.boot.interceptor.BasePathMatchInterceptor;
import io.github.novareseller.boot.interceptor.UserSignInterceptor;
import java.lang.annotation.*;
/**
* @author: Bowen huang
* @date: 2021/05/17
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@InterceptMark
public @interface UserSign {
/**
* 拦截器匹配路径
*
* @return
*/
String[] include() default {"/**"};
/**
* 拦截器排除匹配,排除指定路径拦截
*
* @return
*/
String[] exclude() default {};
/**
* 处理该注解的拦截器类
* 优先从spring容器获取对应的Bean,如果获取不到,则使用反射创建一个!
*
* @return
*/
Class extends BasePathMatchInterceptor> handler() default UserSignInterceptor.class;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy