mercredi 15 avril 2015

Some doubts about request mapping in Spring MVC

I am studying for Spring MVC and on the study material I have the following question on which I have some doubts:



Assuming a web application context name of "rewardsonline", a servlet mapping of /admin/*, and an incoming URL of ""rewardsonline/admin/accounts/show" what is the URL used from Spring MVC request-mapping purpose?




  • /rewardsonline/admin/accounts/show




  • /admin/accounts/show




  • /accounts/show




  • /show





I think that the correct answer is /accounts/show and I have reason in the following way: rewardsonline is the applcation name (the application context name is the application name**.


Whereas /admin/accounts/ is the servlet mapping and finnaly show is the request mapping (mapped on a specific method).


Is it reasoning correct or am I missing something?


Aucun commentaire:

Enregistrer un commentaire