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
  • 454
  • 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.

Reactive Programming with Akka
Written by: Ryan Knight
Featured Refcardz: Top Refcardz:
  1. Design Patterns
  2. OO JS
  3. Cont. Delivery
  4. Java Performance
  5. HTML5 Mobile
  1. Java Performance
  2. Node.js
  3. Debugging JavaScript
  4. Java
  5. Java Concurrency