• 2022-06-06
    在拦截器链中引用一个拦截器用()标签。
    A:
    B:
    C:
  • C

    内容

    • 0

      下面是在springMVC配置文件springmvc-config.xml中配置拦截器的代码,如果要拦截的是所有扩展名为.do的请求资源,请在下划线处完善代码。mvc:interceptorsmvc:interceptormvc:mappingpath=_______/beanclass=com.interceptor.UserInterceptor1//mvc:interceptor/mvc:interceptors

    • 1

      Spring MVC中的拦截器(Interceptor)类似于Servlet中的____。

    • 2

      自定义拦截器类的方式有()。 A: 实现Interceptor接口 B: 实现AbstractInterceptor接口 C: 继承Interceptor类 D: 继承AbstractInterceptor类

    • 3

      为了实现一个拦截器,必须实现下面哪个接口? A: BaseInterceptor B: HandlerInterceptor C: RequestInterceptor D: Interceptor

    • 4

      自定义拦截器可以通过继承()实现。 A: Interceptor B: AbstractInterceptor C: Validator D: Action