DefaultAnnotationHandlerMapping

来源:互联网 发布:娱美德游戏用什么算法 编辑:程序博客网 时间:2024/04/25 22:01

If you define custom HandlerMapping beans in your DispatcherServlet context, you need to add a DefaultAnnotationHandlerMapping bean explicitly, since custom HandlerMapping beans replace the default mapping strategies. Defining a DefaultAnnotationHandlerMapping also allows for registering custom interceptors: