![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
榴莲豆包
幸好我是个小胖子,难过的时候还可以摸摸小肚子
展开
-
vue+element+springboot 实现文件下载 超级bug
今天写代码的时候发现一个问题,后台传来的流,前台点击不能下载,查了半天后发现,原来是之前封装的调接口的请求把后台传来的流blob对象字符串化了,所以点击不能下载。所以就重新写了一个原生的请求,就可以下载了下面附上可以使用的源码:前端:axios({ method: 'get', url: this.baseUrl+'/api/upload/downloadFile?f...原创 2020-03-09 15:44:08 · 742 阅读 · 0 评论 -
springboot文件上传下载所有类型文件,前端使用vue+element,代码在另外一篇博客。
UploadUtils类package com.qiyuan.qyframe.base.util;import com.qiyuan.qyframe.base.bo.ResponseData;import com.qiyuan.qyframe.base.exception.BusiException;import io.swagger.annotations.ApiOperation...原创 2020-03-04 12:31:14 · 781 阅读 · 25 评论 -
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
lz最近在敲springboot创建新项目遇到问题记录一下。报错:rg.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'xxController': Unsatisfied dependency expressed through field 'xxM...原创 2019-12-14 10:44:32 · 3238 阅读 · 5 评论