简体   繁体   English

如何在 Spring Boot 中上传视频 - Angular 6 应用程序?

[英]How to upload videos in spring boot - Angular 6 Application?

I'm working on spring boot / Angular 6 application with Jhipster framework, in this project the user will upload videos in the platform, so, how can I test the upload file in the development?我正在使用 Jhipster 框架开发 spring boot / Angular 6 应用程序,在这个项目中,用户将在平台上上传视频,那么,如何在开发中测试上传文件? The file will be uploaded and saved in a folder in the node server or in the tomcat server ?该文件将上传并保存在节点服务器或tomcat服务器中的文件夹中? When I will deploy the project in a real server, how is it going to be done this procedure?当我将项目部署到真实服务器中时,这个过程将如何完成? The servers of node and tomcat will be deployed ?? node和tomcat的服务器会部署?? I'm a beginner in spring boot and angular and I need your help please.我是弹簧靴和角度的初学者,我需要你的帮助。

if you're writing your backend with spring boot then you have to take care of the uploaded file in the spring boot restful controller;如果您使用 spring boot 编写后端,那么您必须处理 spring boot restful 控制器中上传的文件; upload the the file via multipart in yoyr angular app( you can search uploading files multipart in google) and then receive the file in you're controller(search multipart spring boot) save the file where ever you want via java's File classes在 yoyr angular 应用程序中通过 multipart 上传文件(您可以在 google 中搜索上传文件 multipart),然后在您的控制器中接收文件(搜索 multipart spring boot)通过 java 的文件类将文件保存在您想要的任何位置

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM