Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

2.5 configInterceptor (Interceptors me)


May 14, 2021 JFinal manual



This method is used to configure JFinal's global interceptor, which blocks all action requests unless it is cleared in Controller using @Clear, and the following code is configured with an interceptor named AuthInterceptor.


public void configInterceptor(Interceptorsme)

{ me.add( new AuthInterceptor());

}


JFinal's Interceptor is very similar to Struts2, but is easier to use, and the Interceptor configuration is granular in three levels: Global, Class, and Method, where the above code configuration granularity is global. The Class and Method-level Interceptor configurations are described in more detail in a later section.