修改了资源路径3

This commit is contained in:
wucongxing8150 2025-08-01 11:10:17 +08:00
parent fcf5a0e4eb
commit edb21d1a99

View File

@ -83,7 +83,7 @@ public class CertService {
g2d.drawString(currentDate, 700, 1277);
// 6. 添加印章
BufferedImage seal = ImageIO.read(new File(sealPath));
BufferedImage seal = ImageIO.read(new ClassPathResource(sealPath).getInputStream());
seal = resize(seal, 264, 264); // 调整印章大小
g2d.drawImage(seal, 645, 1150, null);