fix(接口测试): 修复POI和TIKA冲突问题

--bug=1023164 --user=赵勇 【接口定义】github#21820,请求体中使用word文件,点击调试后,没有内容返回 https://www.tapd.cn/55049933/s/1337167
This commit is contained in:
fit2-zhao 2023-02-17 14:21:55 +08:00 committed by fit2-zhao
parent ec570da638
commit 0000805db6
2 changed files with 15 additions and 2 deletions

View File

@ -16,6 +16,20 @@
<groupId>io.metersphere</groupId> <groupId>io.metersphere</groupId>
<artifactId>sdk</artifactId> <artifactId>sdk</artifactId>
<version>${revision}</version> <version>${revision}</version>
<exclusions>
<exclusion>
<artifactId>poi</artifactId>
<groupId>org.apache.poi</groupId>
</exclusion>
<exclusion>
<artifactId>poi-ooxml</artifactId>
<groupId>org.apache.poi</groupId>
</exclusion>
<exclusion>
<artifactId>poi-ooxml-schemas</artifactId>
<groupId>org.apache.poi</groupId>
</exclusion>
</exclusions>
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.metersphere</groupId> <groupId>io.metersphere</groupId>

View File

@ -1,11 +1,10 @@
package io.metersphere.api.parse; package io.metersphere.api.parse;
import io.metersphere.api.dto.ApiTestImportRequest; import io.metersphere.api.dto.ApiTestImportRequest;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
public interface ApiImportParser<T> { public interface ApiImportParser<T> {
T parse(InputStream source, ApiTestImportRequest request) throws IOException, InvalidFormatException, Exception; T parse(InputStream source, ApiTestImportRequest request) throws IOException, Exception;
} }