springboot 多个url对应一个view
@GetMapping({"/index", "/yy"})
private String index(){
return "index";
}
访问 /index 和 访问 /yy 的效果一致
@GetMapping({"/index", "/yy"})
private String index(){
return "index";
}
访问 /index 和 访问 /yy 的效果一致