摘要: 构建镜像:docker build -t 镜像名:$1 . $1是版本号 镜像打包:docker save -o 镜像保存目录/镜像名.tar 镜像名:1.0.0 启动临时容器(--rm 表示退出后自动删除容器): bash docker run --rm -it --entrypoint /bin 阅读全文
posted @ 2025-06-20 09:47 张安东 阅读(6) 评论(0) 推荐(0)
摘要: XWPFDocument doc = new XWPFDocument(in); //处理文本List<XWPFParagraph> paragraphs = doc.getParagraphs();for (XWPFParagraph paragraph : paragraphs){ List<X 阅读全文
posted @ 2025-06-05 16:23 张安东 阅读(112) 评论(0) 推荐(0)
摘要: java使用poi修改word文档中图表数据,并更新,返回流 public void forecastLonganalyseReport(HttpServletResponse response, String month) throws IOException { SimpleDateFormat 阅读全文
posted @ 2025-06-05 15:32 张安东 阅读(117) 评论(0) 推荐(0)
摘要: 1、使用idea插件 idea安装mybatisX插件 添加生成模板需要的依赖,例:mybatis-plus3 idea连接数据库,右键点击表,选generator,生成代码 2、使用generator代码包 需要配置文件,运行包 阅读全文
posted @ 2024-12-13 09:26 张安东 阅读(6) 评论(0) 推荐(0)
摘要: 后端文件流转发代码public static void doGetFile(HttpServletResponse httpResponse,String url) { CloseableHttpClient httpClient = null; CloseableHttpResponse resp 阅读全文
posted @ 2023-02-24 18:07 张安东 阅读(312) 评论(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 张安东 阅读(284) 评论(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 张安东 阅读(35) 评论(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:57 张安东 阅读(41) 评论(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 张安东 阅读(581) 评论(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 张安东 阅读(5416) 评论(0) 推荐(0)