https://github.com/sufiyan33/aws-code
Developing Java spring boot based project to stores any types of files in S3 bucket.
https://github.com/sufiyan33/aws-code
aws aws-s3 java s3-bucket spring-boot
Last synced: 3 months ago
JSON representation
Developing Java spring boot based project to stores any types of files in S3 bucket.
- Host: GitHub
- URL: https://github.com/sufiyan33/aws-code
- Owner: Sufiyan33
- Created: 2024-05-12T11:55:04.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-14T12:14:05.000Z (about 1 year ago)
- Last Synced: 2025-01-30T05:43:42.266Z (4 months ago)
- Topics: aws, aws-s3, java, s3-bucket, spring-boot
- Language: Java
- Homepage:
- Size: 81.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# File Stores in AWS S3
We can store any types of file like images, pdf, ppt, word file etc in S3 bucket by using Java Spring boot code.
- Steps :
- Create Spring boot application.
- Add web dependency.
- Add below aws sdk dependency
```
com.amazonaws
aws-java-sdk-s3
1.12.720
```
- You can add below dependency instead of above :
```
org.springframework.cloud
spring-cloud-starter-aws
2.2.6.RELEASE
```
- Create Config class & create AmazonS3 bean.
- Create Service class.
- Create Controller.
- Create yaml file and add s3 bucket credentials.