title: SpringBoot - Java AWS SDK 2 DynamoDB Enhanced Client and devtools problem
body: <p>I am using Spring Boot 2.17 and java sdk and dynamodb-enhanced '2.13.8'.</p>
  
  <p>I am calling with the enhanced client an item like this: </p>
  
  <pre><code>public Product readProductById(String id) {
      Key key = Key.builder()
              .partitionValue(id)
              .build();
      Product product =  productTable.getItem(key);
      return product;
  }
  </code></pre>
  
  <p>it leads when called to this error:</p>
  
  <pre><code>class de.xxx.productsapi.db.Product cannot be cast to class de.xxx.productsapi.db.Product (de.xxx.productsapi.db.Product is in unnamed module of loader 'app'; de.xxx.productsapi.db.Product is in unnamed module of loader org.springframework.boot.devtools.restart.classloader.RestartClassLoader @19e19c7e)
  java.lang.ClassCastException: class de.xxx.productsapi.db.Product cannot be cast to class de.xxx.productsapi.db.Product (de.xxx.productsapi.db.Product is in unnamed module of loader 'app'; de.xxx.productsapi.db.Product is in unnamed module of loader org.springframework.boot.devtools.restart.classloader.RestartClassLoader @19e19c7e)
  </code></pre>
  
  <p>Switching the <code>livereload to enabled: false</code> did not help but completly removing the devtools worked. But this a not statisfying solution since I want to use the devtools.</p>
  
  <p>Thanks for help</p>