spring mvc - How do i get the requestmapping value in the controller? -


In the controller, I have this code, by any means, I have to get a request for the "search" of the mapping value. How is this possible?

  @RequestMapping ("/ search /") public map search specialTerm (@RequestParam ("name") string name) {// more code here}  
< / Div>

One way is to get it from the servlet path. @RejectParam ("name") string name, HTTPSvette request) {string mapping = request .getServletPath (); // more code here}


Comments