1.先下载openoffice,官网下载Apache OpenOffice - Official Download
觉得官网下载慢的可以进我的主页下载Apache_OpenOffice_4.1.6_install_zh-CN.rar_springboot集成openoffice-互联网文档类资源-CSDN下载
下完之后直接安装就行
2.在pom.xml加入以下配置
<!--springboot支持包,里面包括了自动配置类 -->
<!-- https://mvnrepository.com/artifact/org.jodconverter/jodconverter-spring-boot-starter -->
<dependency>
<groupId>org.jodconverter</groupId>
<artifactId>jodconverter-spring-boot-starter</artifactId>
<version>4.2.2</version>
</dependency>
<!--jodconverter 本地支持包 -->
<!-- https://mvnrepository.com/artifact/org.jodconverter/jodconv