Skip to content

Commit

Permalink
fix: [kakao-tech-campus-2nd-step3#30] S3Config 파일 Bean 어노테이션 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
jupyter471 committed Oct 11, 2024
1 parent 6de5081 commit fd0032a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/helpmeCookies/global/config/S3Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.amazonaws.services.s3.AmazonS3;
import com.amazonaws.services.s3.AmazonS3ClientBuilder;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
Expand All @@ -17,6 +18,7 @@ public class S3Config {
@Value("${cloud.aws.region.static}")
private String region;

@Bean
public AmazonS3 amazonS3() {
AWSCredentials credentials = new BasicAWSCredentials(accessKey,secretKey);

Expand Down

0 comments on commit fd0032a

Please sign in to comment.