CHZZK-Study / Grass-Diary-Server

취지직 2팀 프로젝트 Grass Diary Server
1 stars 4 forks source link

[feat/make-s3-server] 이미지 저장용 AWS S3 서버 구축 #66

Closed HongYeseul closed 3 months ago

HongYeseul commented 4 months ago

*서버 실행 전 .env 파일에 S3 버킷 관련 설정 추가 해주어야 합니다!

AWS S3을 사용하는 방법

1. AWS S3 사용하기 위한 의존성 추가

//aws s3
implementation('org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE')

2. AwsProperties 객체 만들기

3. AwsS3Service 클래스 - 이미지 저장하는 비즈니스 로직 구현

업로드가 가능한 서비스와 컨트롤러 만들기

업로드 테스트 하기


현재 기능에서 더 필요한 부분


참고 사이트