Demo Site

Monday, April 05, 2010

Spring @RequestMapping + Multiple Paths

I don't know why this isn't documented officially (that I could find anyways), but you can put multiple paths in the requestmapping annotation like so:

@RequestMapping({"/mapping1","/mapping2/*"})

No comments:

Labels

Labels

Labels