Spring MVC拦截器

  The ordered set of interceptors that intercept HTTP Servlet Requests handled by Controllers. Interceptors allow requests  to be pre/post processed before/after handling. Each  inteceptor must implement the
org.springframework.web.servlet.HandlerInterceptor or
org.springframework.web.context.request.WebRequestInterceptor
interface.
  The interceptors in this set are automatically  configured on each registered HandlerMapping. The URI paths each interceptor applies to are configurable.


<!-- Configures Handler Interceptors -->	
<mvc:interceptors>
	<!-- Changes the locale when a 'locale' request parameter is sent; e.g. /?locale=de -->
	<bean class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor" />
</mvc:interceptors>

你可能感兴趣的:(spring mvc)