added pageNotFoundException on not existing routs
This commit is contained in:
@ -427,4 +427,9 @@ public class Gruppen2Controller {
|
|||||||
}
|
}
|
||||||
return "redirect:/gruppen2/details/members/" + groupId;
|
return "redirect:/gruppen2/details/members/" + groupId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("*")
|
||||||
|
public String defaultLink() throws EventException {
|
||||||
|
throw new PageNotFoundException("\uD83D\uDE41");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user