user2472968
user2472968

Reputation: 395

How to track the controller for the jsp in spring mvc?

I am working on a Spring MVC project with annotations. I have a question suppose I open up a random jsp in the browser, is there any way to track the controller for that jsp?

Unlike the older versions of Spring where controller mapping for view was done in xml, from there we could possibly track the controller.

Upvotes: 0

Views: 228

Answers (1)

NimChimpsky
NimChimpsky

Reputation: 47290

look at the logs, or the source. Or write a java program that scans classpath for request mappings.

But multiple different controllers could serve one jsp - and it could be conditional.

Upvotes: 1

Related Questions