springboot 多个url对应一个view

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

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

posted @ 2020-08-10 16:38  市丸银  阅读(563)  评论(0编辑  收藏  举报