Currently the application I am working on throws 404 error while using custom path.
e.g.
@Controller @RequestMapping(value = "/orderconfirmation") public class OrderConfirmationController {
.... .... ...
@RequestMapping(value = "{TId}",method = RequestMethod.GET) public String getOrderConfirmation(@PathVariable String TId, Model model) { .... some code here ... model.addAttribute("transaction",transaction); return "orderconfirmation"; }
... ... ...
}
It triggers the controller as during debug I can go through the controller. But after completion it throws 404 error. Any idea?