1.记录本人在实际开发过程中遇到的问题
将已经上传至阿里云的图片录音下载至同一文件夹并压缩,里面用到的文件工具类在另外一篇文章里面
import com.bkcc.core.annotion.Action; import com.bkcc.core.data.ViewData; import com.bkcc.core.util.AppUtil; import com.bkcc.core.util.StringUtil; import com.bkcc.util.mytoken.annotation.IgnoreAuth; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Value; import org.springframework.data.elasticsearch.annotations.DateFormat; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.*; import java.net.URL; import java.text.SimpleDateFormat; import java.util.Date; /** * @author chenxu *录音视频导出功能 */ @Controller @Action(description="详情视频录音下载") @RequestMapping("/whistle/ViewAndSound/") public class VideoAndSoundDown { @IgnoreA