title: Cannot do operations on a non-existent table
body: <p>Facing issue while using DynamoDb with Spring Boot for storing data.</p>
  
  <p>It gives me the following error.
  com.amazonaws.services.dynamodbv2.model.ResourceNotFoundException: Cannot do operations on a non-existent table (Service: AmazonDynamoDBv2; Status Code: 400; Error Code: ResourceNotFoundException; Request ID: 7ffd4509-e444-4569-8c81-d4e7a1c218ef)</p>
  
  <p>I have started a local instance of DynamoDb using the following command on a windows machine</p>
  
  <p><strong>java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -port 8001 -sharedDb</strong></p>
  
  <p>Created DynamoDBMapper for interacting with DB</p>
  
  <pre><code>@Bean
  public DynamoDBMapper mapper() {
      return new DynamoDBMapper(amazonDynamoDBConfig());
  }
  
  public AmazonDynamoDB amazonDynamoDBConfig() {
      return AmazonDynamoDBClientBuilder.standard()
      .withEndpointConfiguration(new 
      AwsClientBuilder.EndpointConfiguration(awsDynamoDBEndPoint, awsRegion))
      .withCredentials(new AWSStaticCredentialsProvider(new 
      BasicAWSCredentials(awsAccessKey, awsSecretKey)))
      .build();
  }
  </code></pre>
  
  <p>And called mapper using @Autowiring</p>
  
  <pre><code>@Autowired
  private DynamoDBMapper mapper;
  </code></pre>
  
  <p>When I try to add data using </p>
  
  <p>mapper.save(person);</p>
  
  <p>it gives an error saying <strong>Cannot do operations on a non-existent table</strong></p>
  
  <p>Please give me some idea where I am missing the trick here.
  Thanks in advance.</p>