Checking amazonDynamoDBEndpoint string is not empty
This commit is contained in:
parent
e95d1e2908
commit
427b012ee4
|
@ -27,7 +27,7 @@ public class DynamoDBConfig {
|
|||
@Bean
|
||||
public AmazonDynamoDB amazonDynamoDB() {
|
||||
AmazonDynamoDB amazonDynamoDB = new AmazonDynamoDBClient(amazonAWSCredentials());
|
||||
if (StringUtils.isEmpty(amazonDynamoDBEndpoint)) {
|
||||
if (!StringUtils.isEmpty(amazonDynamoDBEndpoint)) {
|
||||
amazonDynamoDB.setEndpoint(amazonDynamoDBEndpoint);
|
||||
}
|
||||
return amazonDynamoDB;
|
||||
|
|
Loading…
Reference in New Issue