Creating a Custom handlermapper, What handlermapping does spring mvc use?
In my spring mvc application, I am using annotations on the controllers.
What handlermapping implementation will map my urls to controller methods then? (I use requestmapping("/home")
As a simple test to learn how to make my own handlermapper, how could I create a handler mapper that would do the following:
If a request comes in for the url "/myblog", I want to run the method in BlogController#index.
How would I do this?
Note: The goal for me is to learn how to create a handler mapper that will work dynamically (reading values from the db), so I can't hard code urls to controllers.