小编use*_*615的帖子

如何在Ionic混合移动应用程序中添加多个html页面

我在html中有两个页面作为登录和注册页面但无法在单个index.html页面中创建它们.我的项目是混合移动应用程序开发.

html javascript angularjs ionic-framework

2
推荐指数
1
解决办法
1万
查看次数

使用Vertx.io框架为多部件文件上载编写后API

我正在使用vertx.io编写用于多部分文件上载的代码.

在Spring启动时,我的代码如下.我想在vertex.io中写类似的东西

@RequestMapping(value = "/upload", headers=("content-type=multipart/*") ,method = RequestMethod.POST)
public ImportExportResponse upload(@RequestParam("file") MultipartFile inputFile){
    log.info(" upload service method starts  ");
    ImportExportResponse response = new ImportExportResponse();
    FileOutputStream fileOutputStream=null;
    try{
        File outputFile = new File(FILE_LOCATION+inputFile.getOriginalFilename());
        fileOutputStream = new FileOutputStream(outputFile);
        fileOutputStream.write(inputFile.getBytes());   
        fileOutputStream.close();

        response.setStatus(ImportExportConstants.ResponseStatus.SUCCESS.name());
        response.setErrorMessage(EMPTY);

    }catch (Exception e) {
        log.error("Exception while upload the file . "+e.getMessage());
        response.setStatus(ImportExportConstants.ResponseStatus.ERROR.name());
        response.setErrorMessage(errorMap.get(SYSTEM_ERROR_CODE));          
    }
    log.info(" upload service method ends. file is copied to a temp folder ");
    return response;
}
Run Code Online (Sandbox Code Playgroud)

java multipart vert.x

0
推荐指数
1
解决办法
4597
查看次数

标签 统计

angularjs ×1

html ×1

ionic-framework ×1

java ×1

javascript ×1

multipart ×1

vert.x ×1