摘要: 后端文件流转发代码public static void doGetFile(HttpServletResponse httpResponse,String url) { CloseableHttpClient httpClient = null; CloseableHttpResponse resp 阅读全文
posted @ 2023-02-24 18:07 张安东 阅读(218) 评论(0) 推荐(0) 编辑
摘要: public static String doPost(String url,String fileName, File file) { CloseableHttpClient httpClient = null; CloseableHttpResponse response = null; Str 阅读全文
posted @ 2023-02-24 17:58 张安东 阅读(198) 评论(0) 推荐(0) 编辑
摘要: public static List<Map<String,Object>> test1() throws Exception{ File file = new File("C:/Users/luo_a/Desktop/数据测试.xlsx"); if (!file.exists()){ throw 阅读全文
posted @ 2023-02-14 09:58 张安东 阅读(28) 评论(0) 推荐(0) 编辑
摘要: springboot导出Excel报表 一.实现流程 1.添加POI 的相关jar包 <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>4.1.1</version> 阅读全文
posted @ 2023-02-14 09:56 张安东 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 一、RestTemplate是什么 环境约束: spring-web-4.3.9.RELEASE Spring文档: https://docs.spring.io/spring/docs/4.3.9.RELEASE/spring-framework-reference/html/remoting.h 阅读全文
posted @ 2021-12-21 17:22 张安东 阅读(499) 评论(0) 推荐(0) 编辑
摘要: 本文参考: https://blog.csdn.net/fightingXia/article/details/71775516 https://www.cnblogs.com/jeffen/p/6937788.html 随着网络上java应用越来越多,场景越来越复杂,所以应用之间经常通过HTTP接 阅读全文
posted @ 2021-12-21 16:44 张安东 阅读(4896) 评论(0) 推荐(0) 编辑
摘要: /** * 向指定 URL 发送POST方法的请求 * * @param url * 发送请求的 URL * @param param * 请求参数 * @return 所代表远程资源的响应结果 * @throws Exception */ public static String sendPost 阅读全文
posted @ 2021-12-21 15:14 张安东 阅读(267) 评论(0) 推荐(0) 编辑
摘要: ##可能是springSecurity框架不支持模拟浏览器 阅读全文
posted @ 2021-11-28 13:18 张安东 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 1、连接Mysql 格式: mysql -h主机地址 -u用户名 -p用户密码1、连接到本机上的MYSQL。首先打开DOS窗口,然后进入目录mysql\bin,再键入命令mysql -u root -p,回车后提示你输密码.注意用户名前可以有空格也可以没有空格,但是密码前必须没有空格,否则让你重新输 阅读全文
posted @ 2021-11-24 10:15 张安东 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 1.安装服务:mysqld --install 2.初始化:mysqld --initialize --console 3.开启服务:net start mysql 4.关闭服务:net stop mysql 5.登录mysql:mysql -u root -p(需要开启服务) Enter Pass 阅读全文
posted @ 2021-11-23 18:59 张安东 阅读(17) 评论(0) 推荐(0) 编辑