feat: 加水印限制并发
This commit is contained in:
@@ -41,7 +41,7 @@ public class WaterMarkUtil {
|
|||||||
return userName + " " + formattedDate;
|
return userName + " " + formattedDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public InputStream addWatermarkToPdf(InputStream inputStream) throws IOException {
|
public synchronized InputStream addWatermarkToPdf(InputStream inputStream) throws IOException {
|
||||||
String watermarkText = getWaterMarkConfig();
|
String watermarkText = getWaterMarkConfig();
|
||||||
PDDocument document = PDDocument.load(inputStream);
|
PDDocument document = PDDocument.load(inputStream);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user