gpt4 book ai didi

java - Spring MVC 3.0 : how do I define an interceptor with annotations?

转载 作者:塔克拉玛干 更新时间:2023-11-02 19:04:20 25 4
gpt4 key购买 nike

我正在使用 Spring MVC (3.0) 开发应用程序。

我定义了一些带有注解的 Controller ,我如何也定义一个带有注解的拦截器。

最佳答案

你不能。希望我们能在 3.1 中得到它。在那之前,我们必须使用 HandlerInterceptor 接口(interface)。

关于java - Spring MVC 3.0 : how do I define an interceptor with annotations?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2221811/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com