springboot拦截器

2021-01-30 23:14

阅读:393

标签:ati   pre   div   reg   intercept   registry   web   one   ram   

package 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("拦截器执行。。。。。。。。。。。。。。。。。。。。。。");
    }

}

 

springboot拦截器

标签:ati   pre   div   reg   intercept   registry   web   one   ram   

原文地址:https://www.cnblogs.com/-llf/p/12818823.html


评论


亲,登录后才可以留言!