2.1创建一个类 实现接口 HandlerInterceptor 2.2重写接口中的抽象方法 2.3把创建的类配置到springmvc文件中 转载于:https://www.cnblogs.com/lwgok1003/p/11548206.html