HA

programming

添加pdfbox <dependency> <groupId>org.apache.pdfbox</groupId> <artifactId>pdfbox</artifactId> <version>3.0.5</version> </dependency> <dependency> <groupId>org.apache.pdfbox</groupId> <artifactId>fontbox</artifactId> <version>3.0.5</version> </dependency> 使用pdfbox将文字pdf转换为图片pdf String inputPath = "input.pdf"; // 输入 PDF String outputPath = "output_image_pdf.pdf"; // 输出图片 PDF float dpi = 300; // 渲染分辨率 try (PDDocument
1. 定位控制台中的未知log, 并抑制输出 历史遗留项目中依赖很多, 有时会有很多不同的日志框架被整合进来, 就有可能会遇到某些依赖包中的日志输出没有
测试方法 @BeforeEach 备份表 执行方法 @AfterEach 从备份表恢复数据并删除备份表 示例代码: { @Autowired private JdbcTemplate jdbcTemplate; @BeforeEach public void before() { // 备份表 String today = LocalDate.now().format(DateTimeFormatter.ofPattern("uuMMdd")); template.execute(String.format("create table test_table_%s as select * from test_table", today)); } @AfterEach public void after() { String today = LocalDate.now().format(DateTimeFormatter.ofPattern("uuMMdd")); template.execute(String.format("insert
问题描述 一台服务器出现OOM(为本应用分配了4G内存),挂掉了 java.lang.OutOfMemoryError: GC overhead limit exceeded 问题排查 拿到dump文件,使用jvisualvm打开查看后,发现下面