Sfoglia il codice sorgente

fix: 排除 pdfbox 的 commons-logging 依赖避免日志冲突

Spring Boot 使用 spring-jcl 替代 commons-logging,
pdfbox 引入的 commons-logging 会导致类路径冲突警告。
何文松 1 mese fa
parent
commit
f3527b540d
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 7 0
      backend/pom.xml

+ 7 - 0
backend/pom.xml

@@ -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 -->