swagger.yaml:如何生成“InputStreamResource”类型为。的响应;
我正在使用swagger codegen生成JAVA类swagger.yaml:如何生成“InputStreamResource”类型为。的响应;,swagger,swagger-codegen,Swagger,Swagger Codegen,我正在使用swagger codegen生成JAVA类 paths: /report: get: summary: Returns the report in the PDF format responses: '200': description: A PDF file content: application/octet-stream: schema
paths:
/report:
get:
summary: Returns the report in the PDF format
responses:
'200':
description: A PDF file
content:
application/octet-stream:
schema:
type: string
format: binary
我想生成一个ResponseEntity为ResponseEntity
的类
例如:
ResponseEntity pmml(@RequestParam(value=“modelUuid”)字符串modelUuid);
我使用下面的yaml生成JAVA类
paths:
/report:
get:
summary: Returns the report in the PDF format
responses:
'200':
description: A PDF file
content:
application/octet-stream:
schema:
type: string
format: binary
但它只生成如下所示的java类:
响应性报告();
您找到解决方案了吗?