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

返回类型为byte[] 时候报错 #114

Open
cloudgc opened this issue Oct 19, 2020 · 1 comment
Open

返回类型为byte[] 时候报错 #114

cloudgc opened this issue Oct 19, 2020 · 1 comment

Comments

@cloudgc
Copy link

cloudgc commented Oct 19, 2020

版本号

1.8.1

什么问题

右键文件上传的时候 如果 controller 中的返回类型是byte[] 无法上传

如何复现此问题

点击 UploadToYapi 菜单时

接口定义 (如果可以的话,请上传请求对象和响应对象)

@GetMapping(value = "/pic", produces = MediaType.IMAGE_PNG_VALUE)
    public byte[]  getPic() {
       return new byte[0]; 
   }

idea 版本

2020.1

@aqiu202
Copy link

aqiu202 commented Jul 11, 2022

可以试试我重构的版本,RedsoftYapiUpload,友好的配置面板,支持批量导入,完美支持泛型,并支持Jackson库的注解解析

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