springboot 多个url对应一个view

   @GetMapping({"/index", "/yy"})
    private String index(){
        return "index";
    }

访问 /index 和 访问 /yy 的效果一致

原文地址:https://www.cnblogs.com/wt7018/p/13470579.html