File tree Expand file tree Collapse file tree
spring-boot-data-dynamodb
src/main/java/com/baeldung/spring/data/es/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change 105105 <version >1.11.34</version >
106106 </dependency >
107107 <dependency >
108- <groupId >org.socialsignin </groupId >
108+ <groupId >com.github.derjust </groupId >
109109 <artifactId >spring-data-dynamodb</artifactId >
110- <version >4.2 .1</version >
110+ <version >4.3 .1</version >
111111 </dependency >
112112 </dependencies >
113113
162162 <enabled >false</enabled >
163163 </snapshots >
164164 </repository >
165- <repository >
166- <id >opensourceagility-release</id >
167- <url >http://repo.opensourceagility.com/release/</url >
168- </repository >
169165 </repositories >
170166 <pluginRepositories >
171167 <pluginRepository >
Original file line number Diff line number Diff line change 11package com .baeldung .spring .data .es .config ;
22
3- import org .apache .commons .lang3 .StringUtils ;
3+
4+
45import org .springframework .beans .factory .annotation .Value ;
56import org .springframework .context .annotation .Bean ;
67import org .springframework .context .annotation .ComponentScan ;
78import org .springframework .context .annotation .Configuration ;
9+ import org .springframework .util .StringUtils ;
810
911import com .amazonaws .auth .AWSCredentials ;
1012import com .amazonaws .auth .BasicAWSCredentials ;
@@ -27,7 +29,7 @@ public class DynamoDBConfig {
2729 @ Bean
2830 public AmazonDynamoDB amazonDynamoDB () {
2931 AmazonDynamoDB amazonDynamoDB = new AmazonDynamoDBClient (amazonAWSCredentials ());
30- if (StringUtils .isNotEmpty (amazonDynamoDBEndpoint )) {
32+ if (StringUtils .isEmpty (amazonDynamoDBEndpoint )) {
3133 amazonDynamoDB .setEndpoint (amazonDynamoDBEndpoint );
3234 }
3335 return amazonDynamoDB ;
You can’t perform that action at this time.
0 commit comments