http restfull 匹配多个路径

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

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

  

本文来自博客园,作者:三号小玩家,转载请注明原文链接:https://www.cnblogs.com/q1359720840/p/15701855.html

原文地址:https://www.cnblogs.com/q1359720840/p/15701855.html