首先springMVC.xml配置拦截器utils新创建一个拦截器工具类,实现HandlerInterceptor接口 转载于:https://blog.51cto.com/13579083/2328740