首页 > 编程语言 > 详细

springboot拦截器

时间:2020-05-02 19:38:03      阅读:42      评论:0      收藏:0      [点我收藏+]
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拦截器

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!