In Spring MVC, class DefaultAnnotationHandlerMapping is deprecated. Documentation ( http://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/web/servlet/mvc/annotation/DefaultAnnotationHandlerMapping.html ) says:
Deprecated. in Spring 3.2 in favor of RequestMappingHandlerMapping
Why is it deprecated? What practical problems of this class were fixed in RequestMappingHandlerMapping?
Spring Framework is an open-source project hosted on GitHub so all this information is easy to find in the code:
@Deprecated
" to find the associated commit: click
The relevant part:
The new classes were developed in response to many requests to make annotation controller support classes more customizable and open for extension. Whereas previously you could configure a custom annotated controller method argument resolver, with the new support classes you can customize the processing for any supported method argument or return value type.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With