简体   繁体   中英

Programatically add Spring interceptor without application desciptor

I have an interceptor that I would like to invoke on all requests. I would like to configure that interceptor without component-scan or adding it the mvc:interceptors element in the web.xml.

Is it possible?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM