导出Excel添加水印
需求背景:
要求导出的Excel有水印,且水印不要是可点击的图片影响正常操作。
开发环境:
JDK 1.8
SpringBoot v2.2.5.RELEASE
导入依赖:
1 <!-- poi 相关--> 2 <dependency> 3 <groupId>org.apache.poi</groupId> 4 <artifactId>poi</artifactId> 5 <version>3.8</version> 6 </dependency> 7 <dependency> 8 <groupId>org.apache.poi</groupId> 9 <artifactId>poi-ooxml</artifactId> 10 <version>3.8</version> 11 </dependency> 12 <dependency> 13 <groupId>org.apache.poi</groupId> 14 <artifactId>ooxml-schemas</artifactId> 15 <version>1.0</version> 16 </dependency>