![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java,maven,web
yun0000000
读书破万卷,不如写一遍
展开
-
java压缩文件下载
import org.apache.commons.io.IOUtils;import org.slf4j.Logger;import org.slf4j.LoggerFactory;import org.springframework.util.CollectionUtils;import javax.servlet.http.HttpServletResponse;import...原创 2020-03-25 10:40:22 · 166 阅读 · 0 评论 -
restTemplate下载图片出现 Invalid mime type "image": does not contain '/'
restTemplate下载图片出现 Invalid mime type "image": does not contain '/',因为图片服务器返回的response的Content-Type为image原创 2020-03-25 10:38:03 · 1564 阅读 · 0 评论 -
使用IDEA将普通MAVEN项目转为WEB项目
使用IDEA将普通MAVEN项目转为WEB项目原创 2017-04-24 21:14:32 · 18583 阅读 · 0 评论 -
windows正常linux(Ubuntu16)乱码问题
解决方案:1、修改linux系统编码sudo vi /etc/default/localeLANG=en_US.UTF-8LANGUAGE="en_US:UTF-8"LC_ALL="en_US.UTF-8" 2、spring boot 项目application.properties 文件添加server.tomcat.uri-encoding=UTF-8sprin...原创 2018-08-10 16:59:57 · 575 阅读 · 0 评论 -
spring restTemplate 上传文件流
要复写ByteArrayResource getFileName,否则报错MultiValueMap<String, Object> bodyParams = new LinkedMultiValueMap<>();org.springframework.core.io.Resource resource = new ByteArrayResource(byte[...原创 2019-08-08 20:43:06 · 6950 阅读 · 0 评论