-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
35 lines (25 loc) · 1.3 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
*******
******* Spring boot RESTful service
*******
Display list of files to download (search):
curl.exe "http://localhost:8080/rest/download
Displaying content of a file: (Run above to see list of files. If no files exist, then upload):
curl.exe "http://localhost:8080/rest/download?fileName=pom.xml_META.txt
Downloading file:
wget.exe -O foo.txt "http://localhost:8080/rest/download?fileName=pom.xml_META.txt"
*******
******* Spring boot MVC services for file upload / download
*******
The file can be selected from local storage and will then be stored into persistence store; file system.
The uploaded file will be stored into /tmp/uploadFolder.
Once uploaded, it will also save some file meta data information. For this, it will create a matching filename, but will use naming convention. The meta data file name will end with _META.txt
http://localhost:8080/upload
using chooser to select a file from local device
http://localhost:8080/download
If text-entry field is blank, it will list the meta-data files
If non-existent file is entered, produces error message
If valid meta data file is requested, it will pull the information and display result
******
****** Scheduler
******
For demo purpose, scheduler enabled to run using fixed interval of 5 sec, comment to disable in SpringBootWebApplication