title: Spring DATA JDBC fails to inject a Repository when run from the spring integration test
body: <p><a href="https://spring.io/projects/spring-data-jdbc" rel="nofollow noreferrer">Spring Boot JDBC</a> with <code>Spring Boot</code>: 2.2.4.RELEASE, in gradle the dep:</p>
  
  <pre><code> implementation ("org.springframework.boot:spring-boot-starter-data-jdbc")
  </code></pre>
  
  <p>The dep to -data-jpa (see "duplicated question")</p>
  
  <pre><code>//implementation ("org.springframework.boot:spring-boot-starter-data-jpa") is commented
  </code></pre>
  
  <p>Got this error ONLY when run it from the integration tests:</p>
  
  <pre><code>    "A constructor parameter name must not be null to be used with Spring Data JDBC!"
   Error creating bean with name 'myRepository': 
  </code></pre>
  
  <p>where my repository is defined as this. An interface. It can not have a constructor.</p>
  
  <pre><code>public interface MyRepository extends CrudRepository&lt;MyData, UUID&gt; {
  </code></pre>
  
  <p>the way it is injected is:</p>
  
  <pre><code>@Inject
  MyRepository myRepository;
  </code></pre>
  
  <p>The integration test itself:</p>
  
  <pre><code>@ActiveProfiles("test")
  @ExtendWith(SpringExtension.class)
  @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = Application.class)
  public class MyResourceTest {
  </code></pre>
  
  <p>It used to work for a lower spring boot version from the tests.
  It works Ok. from IDE when starting tests.
  It works Ok. when starting the app and hit the endpoints - it does inject the repositories.</p>
  
  <p><strong>Q:</strong> How to make Spring DATA JDBC work without this "A constructor parameter name must not be null to be used with Spring Data JDBC!" error for the spring data jdbc repositories?</p>
  
  <p><strong>UPDATE:</strong> just checked and double-checked.</p>
  
  <pre><code>class MyData {
      //@Id Dont use the Id annotation here because I use a mapper when @Query(.. by this object 
      private UUID id;
      private String name;
      private MyData2 mydata2;
  
      public MyData() {}
      public MyData(String name, MyData2 mydata2) {...}
      .. all getters and setters
  }
  </code></pre>
  
  <p><code>MyData2</code> is the same - with the default + all arg Constructor. All is made manual. No <code>lombok</code>.</p>
  
  <p><strong>Update 2:</strong></p>
  
  <p>if I create a folder "jdbc" put there the config class with <code>@ EnableJdbcRepositories</code> and move all my data jdbc repositories there "to be in one module". I still have the same exception. IF run from the integration test. </p>