解决合同模板上传不支持docx问题

dev
wany 2025-03-04 17:24:48 +08:00
parent ac8dff9d48
commit 8b2539c99f
2 changed files with 1727 additions and 190 deletions

View File

@ -219,7 +219,29 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version> <!-- 请根据实际情况选择合适的版本 -->
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<includes>
<include>**</include> <!-- 包含所有依赖 -->
</includes>
<excludes>
<exclude>**/org/apache/poi/xwpf/converter/core/styles/XWPFStylesDocument.class</exclude> <!-- 排除特定类 -->
</excludes>
</artifactSet>
</configuration>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>
</project> </project>