Spring Boot 使用 spring-jcl 替代 commons-logging, pdfbox 引入的 commons-logging 会导致类路径冲突警告。
@@ -193,6 +193,13 @@
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>${pdfbox.version}</version>
+ <exclusions>
+ <!-- 排除 commons-logging,使用 Spring 的 jcl-over-slf4j -->
+ <exclusion>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<!-- Apache POI -->