fuint-application/application-web/src/main/java/com/fuint/application/web/backend/components/FileController.java
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package com.fuint.application.web.backend.components;
import com.fuint.application.service.setting.SettingService;
import com.fuint.application.util.CommonUtil;
import com.fuint.application.util.DateUtil;
import com.fuint.application.util.JsonUtil;
import com.fuint.application.util.AliyunOssUtil;
import com.fuint.application.web.backend.util.JSONUtil;
import com.aliyun.oss.OSS;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.context.ContextLoader;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.io.IOException;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
/**
* 文件上传管理控制类
* Created by FSQ
* Contact wx fsq_better
* Site https://www.fuint.cn
*/
@Controller
@RequestMapping(value = "/backend/file")
public class FileController {
private static final Logger logger = LoggerFactory.getLogger(FileController.class);
@Autowired
private Environment env;
@Autowired
private SettingService settingService;
/**
* 上传文件
*
* @param request
* @param response
* @throws IOException
*/
@RequestMapping(value = "/upload", produces = "text/html;charset=UTF-8")
@ResponseBody
public String uploadFileLocal(HttpServletRequest request, HttpServletResponse response) {
String action = request.getParameter("action") == null ? "" : request.getParameter("action");
后面还有 136 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。