## Spring Boot File Upload / Download Rest API Example
**Tutorial**: [Uploading an Downloading files with Spring Boot](https://www.callicoder.com/spring-boot-file-upload-download-rest-api-example/)
## Steps to Setup
**1. Clone the repository**
```bash
git clone https://github.com/callicoder/spring-boot-file-upload-download-rest-api-example.git
```
**2. Specify the file uploads directory**
Open `src/main/resources/application.properties` file and change the property `file.upload-dir` to the path where you want the uploaded files to be stored.
```
file.upload-dir=/Users/callicoder/uploads
```
**2. Run the app using maven**
```bash
cd spring-boot-file-upload-download-rest-api-example
mvn spring-boot:run
```
That's it! The application can be accessed at `http://localhost:8080`.
You may also package the application in the form of a jar and then run the jar file like so -
```bash
mvn clean package
java -jar target/file-demo-0.0.1-SNAPSHOT.jar
```
没有合适的资源?快使用搜索试试~ 我知道了~
HTML2pdf2img打包加密
共332个文件
xml:121个
class:81个
jar:65个
需积分: 20 2 下载量 155 浏览量
2020-08-10
16:47:29
上传
评论
收藏 65.26MB RAR 举报
温馨提示
HTML2pdf2img打包加密
资源推荐
资源详情
资源评论
收起资源包目录
HTML2pdf2img打包加密 (332个子文件)
PropertiesLauncher.class 21KB
SealUtil.class 16KB
JarFile.class 15KB
JarFileEntries.class 14KB
JarURLConnection.class 11KB
Handler.class 11KB
FileController.class 10KB
JarFileArchive.class 7KB
Html2Img.class 6KB
FileController.class 6KB
LaunchedURLClassLoader.class 6KB
ConvertImg.class 5KB
CentralDirectoryFileHeader.class 5KB
ExplodedArchive.class 5KB
SystemPropertyUtils.class 5KB
AsciiBytes.class 5KB
Launcher.class 5KB
CentralDirectoryEndRecord.class 5KB
CentralDirectoryParser.class 5KB
JarURLConnection$JarEntryName.class 4KB
RandomAccessDataFile.class 4KB
ExplodedArchive$FileEntryIterator.class 4KB
FileStorageService.class 4KB
FileStorageService.class 4KB
JarEntry.class 4KB
StringSequence.class 4KB
ExecutableArchiveLauncher.class 4KB
CentralDirectoryEndRecord$Zip64End.class 3KB
CreateStamp.class 3KB
RandomAccessDataFile$FileAccess.class 3KB
SealConfiguration.class 3KB
RandomAccessDataFile$DataInputStream.class 3KB
PathUtil.class 2KB
SealFont.class 2KB
JarFile$1.class 2KB
JarFileEntries$EntryIterator.class 2KB
CentralDirectoryEndRecord$Zip64Locator.class 2KB
PropertiesLauncher$PrefixMatchingArchiveFilter.class 2KB
ZipInflaterInputStream.class 2KB
JarFileArchive$EntryIterator.class 2KB
WarLauncher.class 2KB
JarFileEntries$1.class 2KB
JarLauncher.class 2KB
LaunchedURLClassLoader$UseFastConnectionExceptionsEnumeration.class 1KB
MainMethodRunner.class 1KB
DataTransBean.class 1KB
Agricultural.class 1KB
ExplodedArchive$FileEntryIterator$EntryComparator.class 1KB
PropertiesLauncher$ArchiveEntryFilter.class 1KB
UploadFileResponse.class 1KB
UploadFileResponse.class 1KB
JarFile$JarFileType.class 1KB
JarURLConnection$2.class 1KB
JarFile$2.class 1KB
Archive.class 1KB
ExplodedArchive$FileEntry.class 1KB
JarFileArchive$JarFileEntry.class 1KB
FileDemoApplication.class 907B
FileDemoApplication.class 907B
SealCircle.class 819B
MyFileNotFoundException.class 815B
MyFileNotFoundException.class 815B
FileStorageProperties.class 776B
FileStorageProperties.class 776B
JarURLConnection$1.class 702B
FileDemoApplicationTests.class 642B
FileStorageException.class 640B
FileStorageException.class 640B
SQLAdapter.class 630B
Bytes.class 616B
CentralDirectoryVisitor.class 540B
RandomAccessData.class 485B
Archive$EntryFilter.class 437B
JarURLConnection$CloseAction.class 410B
FileHeader.class 345B
Archive$Entry.class 302B
JarEntryFilter.class 299B
CentralDirectoryEndRecord$1.class 295B
RandomAccessDataFile$1.class 282B
ExplodedArchive$1.class 273B
PropertiesLauncher$1.class 266B
mvnw.cmd 6KB
main.css 2KB
main.css 2KB
main.css 2KB
.gitignore 258B
.gitignore 226B
index.html 2KB
index.html 2KB
index.html 2KB
template_freemarker_fs.html 840B
template_freemarker_fs.html 633B
file-demo.iml 11KB
file-demo-0.0.1-SNAPSHOT.jar 16.76MB
tomcat-embed-core-9.0.27.jar 3.21MB
jpedal-lgpl-4.73b26(1).jar 2.47MB
jpedal-lgpl-4.73b26(1).jar 2.47MB
itextpdf-5.5.11.jar 2.2MB
itextpdf-5.5.11.jar 2.2MB
mysql-connector-java-8.0.11.jar 1.94MB
共 332 条
- 1
- 2
- 3
- 4
资源评论
guoruijun_2012_4
- 粉丝: 185
- 资源: 189
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功