`
未雨绸缪
  • 浏览: 213600 次
  • 性别: Icon_minigender_1
  • 来自: 陕西
社区版块
存档分类
最新评论

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>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics