以编程方式添加没有应用程序描述符的Spring拦截

时间:2015-03-23 13:30:26

标签: java spring web-applications interceptor

我有一个拦截器,我想在所有请求上调用它。 我想在没有组件扫描的情况下配置该拦截器,或者在web.xml中添加mvc:interceptors元素。

有可能吗?

1 个答案:

答案 0 :(得分:1)

如果您使用Java配置,则可能。