I need to start from this url, http://localhost:8080/home/filter?projectId=1;fileId=1
And I create this controller :
@GetMapping("/home/filter/{projectId}/{fileId}")
public String filter(@PathVariable("projectId") int projectId, @PathVariable("fileId") int fileId) {
System.out.println("Project Id " + projectId);
System.out.println("File Id " + fileId);
return "redirect:/home";
}
When I test with : http://localhost:8080/home/filter?projectId=1;fileId=1 I recive this error :
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Wed Apr 04 17:24:51 EEST 2018
There was an unexpected error (type=Not Found, status=404).
/home/filter
I don't know what to do..