Skip to content

Commit a0f281a

Browse files
committed
Updated dependencies to use newer version of dynamoDB dependency
1 parent d48bf9d commit a0f281a

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

‎spring-boot-data-dynamodb/pom.xml‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@
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

@@ -162,10 +162,6 @@
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>

‎spring-boot-data-dynamodb/src/main/java/com/baeldung/spring/data/es/config/DynamoDBConfig.java‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
package com.baeldung.spring.data.es.config;
22

3-
import org.apache.commons.lang3.StringUtils;
3+
4+
45
import org.springframework.beans.factory.annotation.Value;
56
import org.springframework.context.annotation.Bean;
67
import org.springframework.context.annotation.ComponentScan;
78
import org.springframework.context.annotation.Configuration;
9+
import org.springframework.util.StringUtils;
810

911
import com.amazonaws.auth.AWSCredentials;
1012
import 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;

0 commit comments

Comments
 (0)