It depends - what are you trying to do? They all are useful if you're trying to map your controller to the various paths. Reading the Javadocs for RequestMapping might help:
http://static.springsource.org/spring/docs/3.0.0.RELEASE/javadoc-api/org/springframework/web/bind/annotation/RequestMapping.html Matt On Jan 12, 2010, at 11:16 AM, Irshad A. Buchh wrote: > > Hi, > Can someone explain the difference between these class-level annotations. > Which one is most useful. > > @RequestMapping("/hr") > @RequestMapping("/hr/") > @RequestMapping("/hr/*") > @RequestMapping("/hr/**") > > Regards, > > --ib > -- > View this message in context: > http://n4.nabble.com/Spring-MVC-RequestMapping-annotations-Confusion-tp1012217p1012220.html > Sent from the AppFuse - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net > For additional commands, e-mail: users-h...@appfuse.dev.java.net > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net For additional commands, e-mail: users-h...@appfuse.dev.java.net