![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端
文章平均质量分 67
flyfishoy
这个作者很懒,什么都没留下…
展开
-
axios二进制流下载文件乱码问题
一、后台response.setContentType("application/octet-stream");response.setHeader("Content-Disposition", "attachment;filename=xxx.xx");OutputStream os = response.getOutputStream();wb.write(os);os.flush();os.close();二、前端axios.post(url,parameter,{ h..原创 2021-11-26 10:09:19 · 1077 阅读 · 0 评论 -
springboot项目,后台配置了项目根路径,vue打包部署到后台,生成的文件访问不到
修改vue配置文件/config/index.js:module.exports = { ... build: { // Template for index.html index: path.resolve(__dirname, '../dist/index.html'), // Paths assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static'原创 2020-07-22 14:19:36 · 887 阅读 · 0 评论