I am having trouble getting my url-mapping correct.
My Controller looks like this...
@Controller
@RequestMapping(value = "/rest/report")
public class ReportController extends CatalogManagementBaseController {
...
@RequestMapping(method = RequestMethod.GET)
public @ResponseBody String test(Model model) throws Exception{
return "Worked!";
}
}
And my url-mapping looks like this..`
<servlet-mapping>
<servlet-name>dispatcher</servlet-name>
<url-pattern>/rest/*</url-pattern>
</servlet-mapping>`
If I change the url mapping to / it works but I want the dispatcher to only handle the requests sent to ../rest/...
Any idea what I am doing wrong? Could it be something to do with the inheritance?