dimanche 29 mars 2015

Spring MVC: how does spring MVC decide which handler adaptor to use?

DispatcherServlet has 3 default handler adaptors: HttpRequestHandlerAdapter, SimpleControllerHandlerAdapter, and AnnotationMethodHandlerAdapter. In some situation, DispatcherServlet could find two or more handler objects based on handler mappings. For example, the method on the handler object from AnnotationMethodHandlerAdapter and the handler object from SimpleControllerHandlerAdapter. My question is which handler object DispatcherServlet invoke? Can I set priorities of these three? If so, How?

Thank you in advance.


Aucun commentaire:

Enregistrer un commentaire