File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
src/main/java/com/be/sportizebe/global/config Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ dependencies {
5050 runtimeOnly ' io.jsonwebtoken:jjwt-jackson:0.13.0'
5151
5252 // AWS S3
53- implementation " io.awspring.cloud:spring-cloud-aws-starter- s3:3.4.2 "
53+ implementation " software.amazon.awssdk: s3:2.41.18 "
5454
5555 // PostGIS 공간 타입 <-> JTS(Point 등) 매핑 지원
5656 implementation " org.hibernate.orm:hibernate-spatial"
Original file line number Diff line number Diff line change 22
33import lombok .Getter ;
44import org .springframework .beans .factory .annotation .Value ;
5+ import org .springframework .context .annotation .Bean ;
56import org .springframework .context .annotation .Configuration ;
7+ import software .amazon .awssdk .auth .credentials .DefaultCredentialsProvider ;
8+ import software .amazon .awssdk .regions .Region ;
9+ import software .amazon .awssdk .services .s3 .S3Client ;
610
711@ Getter
812@ Configuration
@@ -16,4 +20,12 @@ public class S3Config {
1620
1721 @ Value ("${spring.cloud.aws.s3.path.club}" )
1822 private String club ;
23+
24+ @ Bean
25+ S3Client s3Client () {
26+ return S3Client .builder ()
27+ .region (Region .AP_NORTHEAST_2 )
28+ .credentialsProvider (DefaultCredentialsProvider .create ())
29+ .build ();
30+ }
1931}
You can’t perform that action at this time.
0 commit comments