I have a problem with my REST application.
I've created controller with method:
@RequestMapping(value = "/ofert/${id}", method = RequestMethod.GET)
public String showOfert(@PathVariable("id") long serviceId, Model model) {
model.addAttribute("idOferty", serviceId);
return "ofertDetail";
}
But when I invoke url like localhost:8080/project/ofert/2
I get error:
WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/project/oferta/2/] in DispatcherServlet with name 'appServlet'
I also tried @RequestMapping(value = "/ofert/{id}", method = RequestMethod.GET)
(with out $ sign) but it also isn't working. What is wrong with this?