1.可以实现HandlerInterceptor接口,实现里面的方法,这里不需要添加其他的注解,但是在spring-mvc.xml配置文件中需要添加配置
2.拦截器配置
3.可以添加标记
项目地址: https://gitee.com/yuexingyingxue/springMvcTest1
1.可以实现HandlerInterceptor接口,实现里面的方法,这里不需要添加其他的注解,但是在spring-mvc.xml配置文件中需要添加配置
2.拦截器配置
3.可以添加标记
项目地址: https://gitee.com/yuexingyingxue/springMvcTest1
相关文章: