摘要: 1.pom依赖 2.MultipartSupportConfig配置类 3.后端接口改造 关键字consumes = MULTIPART_FORM_DATA_VALUE 4.FeignClient接口改造 引入配置类MultipartSupportConfig,和接口注解consumes = MUL 阅读全文
posted @ 2019-11-19 11:51 幻月hah 阅读(2985) 评论(0) 推荐(0) 编辑
摘要: pom依赖 1.工具类方法,检测上传目录,若不存在则创建 private void judgeDirExists(String uoloadPath) { try { File targetPatchFile = new File(uploadPath); if (!targetPatchFile. 阅读全文
posted @ 2019-11-19 11:41 幻月hah 阅读(593) 评论(0) 推荐(0) 编辑