http restfull 匹配多个路径

   @PostMapping(path={"/api/file","/api2/file"})
    public String upload(@RequestParam(required = false) MultipartFile file) throws Exception {

        System.out.println(file.getName());
        return "上传成功!";
    }

  

posted @ 2021-12-17 12:50  三号小玩家  阅读(130)  评论(0编辑  收藏  举报
Title
三号小玩家的 Mail: 17612457115@163.com, 联系QQ: 1359720840 微信: QQ1359720840