I am making a blog which can customize page links,fisrt function is the backstage entrance, It like this
@GetMapping("/admin/**")
public String index(){
return "index";
}
and
@GetMapping("/{page_url}")
public String page(@PathVariable String page_url, Model model){
doSomeThing...
}
Goal:
I want when i browse '/admin' to the first function.
Problem:
it to the second, what should I do (Looks like '/favicon.ico' too)