0

I have an xml file containing URLs. I would like to take those URLs and map them to a default handler from which I can return a ModelAndView object. If this is possible can anyone point me in the direction of how? Would this stop me from being able to use standard annotation driven handlers?

Thanks!

4

1 回答 1

3

您需要实现自己的 HandlerMapping。请参阅此处是否可以在 Spring MVC 中动态设置 RequestMappings?

于 2013-11-13T09:29:28.447 回答