springboot拦截器
2021-01-30 23:14
标签:ati pre div reg intercept registry web one ram springboot拦截器 标签:ati pre div reg intercept registry web one ram 原文地址:https://www.cnblogs.com/-llf/p/12818823.htmlpackage com.llf.utils;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Component
public class MyInterceptor implements WebMvcConfigurer {
@Override
public void addInterceptors(InterceptorRegistry registry) {
System.out.print("拦截器执行。。。。。。。。。。。。。。。。。。。。。。");
}
}
上一篇:java中的泛型机制