Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

空指针错误 #216

Open
Axiaopihai opened this issue Dec 9, 2024 · 2 comments
Open

空指针错误 #216

Axiaopihai opened this issue Dec 9, 2024 · 2 comments

Comments

@Axiaopihai
Copy link

当需要传递多个文件时,无法应用list, 应用list进行接口调用,会报出空指针错误

@witt-bit
Copy link
Contributor

提供一下demo

@Axiaopihai
Copy link
Author

提供一下demo

client代码如下:
@Post( url = "url", headers = { "", "" } ) @BodyType("multipart/data-form") BaseRespObj<EstateAllOrderData> estateOrderNo( @Body("types") String types, @Body("persons") String persons, @DataFile("files") List<MultipartFile> files);
报错:
1734078133775

@DataFile("files") List<MultipartFile> files改为@DataFile("files") MultipartFile files正常执行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants