我正在制作一个API,以接收文件并将其上传到Dropwizard项目中的S3存储桶。
这是我的方法定义(名称更改为匿名):
proc sql;
create table ratio as
select a.*, (SCOTLANDRATIO/last_day)*1000 as SCOTLANDAVERAGE
from cdratio a
, (select max(day) as last_day from scotland)
;
quit;
当我尝试制作软件包并使用以下命令运行dropwizard项目时:
@POST
@Path("/uploadVideoForS/{vId}/{sId}/{fileName}")
@Consumes(MediaType.MULTIPART_FORM_DATA)
public String uploadVideoForStyle(@ApiParam(value = "V Id") @PathParam("vId") String vId,
@ApiParam(value = "S Id") @PathParam("sId") String sId,
@ApiParam(value = "File name") @PathParam("fileName") String fileName,
@FormDataParam("file") InputStream inputStream,
@FormDataParam("file") FormDataContentDisposition fileDetail
) {
try {
videoUploadManager.uploadVideoToS3(vId, sId, fileName, inputStream);
return "200OK";
} catch (Exception e) {
throw e;
}
}
,
项目成功构建,但引发以下错误:
mvn package && java -jar target/UploadService-0.0.1.jar server conf.yml
有人知道如何解决此问题吗?