kidloco
kidloco

Reputation: 869

How to programmatically map URL to handler in Spring MVC

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!

Upvotes: 0

Views: 2210

Answers (1)

mvb13
mvb13

Reputation: 1594

You need to implement your own HandlerMapping. See here Is it possible to dynamically set RequestMappings in Spring MVC?

Upvotes: 3

Related Questions