Link Details

Link 1134785 thumbnail
User 1190787 avatar

By theodora.fragkouli
via examples.javacodegeeks.com
Published: Apr 03 2014 / 04:37

With this tutorial we shall explain how to make use of Spring MVC handler interceptors. Handler interceptors are provided by Spring’s handler mapping mechanism, and they can be used to apply a certain functionality to requests. For example, an interceptor may be used to check for a principal. In order to create a handler interceptor, we must make use of org.springframework.web.servlet.HandlerInterceptor. A custom interceptor must implement this interface. The HandlerInterceptor defines three methods that can be used for preprocessing and postprocessing requests:
  • 9
  • 0
  • 474
  • 1464

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Apache Hadoop
Written by: Piotr Krewski
Featured Refcardz: Top Refcardz:
  1. Play
  2. Akka
  3. Design Patterns
  4. OO JS
  5. Cont. Delivery
  1. Play
  2. Java Performance
  3. Akka
  4. REST
  5. Java