You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the ControllerClassNameHandlerMapping in combination with the following controller:
@Controller
public class FooController {
@RequestMapping(value = "{id}", method = RequestMethod.GET)
public String handleView(Model model, @PathVariable("id") String id) {
}
@RequestMapping(value = "{id}.pdf", method = RequestMethod.GET)
public String handlePdfView(Model model, @PathVariable("id") String id) {
}
}
Doing a request for /foo/bar works: the id variable is assigned the value bar.
Doing a request for /foo/bar.pdf does not work, and results in an IllegalStateException.