![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JAVA
郁闷土豆
这个作者很懒,什么都没留下…
展开
-
通过后端接口访问磁盘文件
public static void loadFile(HttpServletResponse response,String path) { File file = new File("D:\\"+path); BufferedInputStream reader = null; FileInputStream inputStream = null; FileInputStream inp = null; try {...原创 2021-09-08 11:47:40 · 231 阅读 · 0 评论 -
java返回磁盘文件流实现下载功能
public static void downloadFile(HttpServletResponse response, String path) throws UnsupportedEncodingException { String filepath = "D:\\" + path; // 如果文件名不为空,则进行下载 if (filepath != null) { File file = new File(filepath); //原创 2021-08-25 15:21:29 · 294 阅读 · 0 评论 -
超简单!JAVA发送邮箱
介绍一下java怎样发送QQ邮箱首先在QQ邮箱界面中把POP3/SMTP服务打开这里可参考链接:https://jingyan.baidu.com/article/6079ad0eb14aaa28fe86db5a.html然后在工程中导入jar包https://pan.baidu.com/s/1kVRvGyFimport javax.mail.*;import javax.mail....原创 2019-07-22 14:58:35 · 213 阅读 · 0 评论