flyleft
flyleft
直接用的springboot ```java /** * 上传文件 */ @PostMapping("/user/tea/les_mgr/file") public String uploadFile(@RequestParam("crs_id") long crsId, @RequestParam("chp_id") long chpId, @RequestParam("les_id") long lesId, @RequestParam("file") MultipartFile file){ crsSer.uploadLessonFile(file,crsId,lesId); return "redirect:/user/tea/les_mgr?crs_id="+crsId+"&chp_id="+chpId; } ``` 文件下载是从nginx拿的
可以,把gradle的依赖转成maven就可以了,等我后天弄个pom.xml上去,这两天忙着做别的
您好,在ide上安装lombok插件;idea导入时选中build.gradle就可以了,然后在application.yml中设置下mongo地址。如果还不行,请再给我说