I have the following method defined in my controller:
@RequestMapping(value = \"/ajax/comments/post/{contentId:([apv]|ad)\\\\d+}\") public @ResponseBody
Everything is said in the error message: use non-capturing groups instead
use non-capturing groups instead
(?:[apv]|ad)\\d+
See http://www.regular-expressions.info/brackets.html for further details.