修改了资源路径3
This commit is contained in:
parent
fcf5a0e4eb
commit
edb21d1a99
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user