I use spring-data-jpa with spring-boot(v2.0.0.RELEASE), I just wrote a CRUD demo on MySQL, but an exception occurs during runtime, source code as f
spring-data-jpa
spring-boot(v2.0.0.RELEASE)
Your test should be like this:
@RunWith(SpringRunner.class) @SpringBootTest @Transactional public class QuestionTesting { @Test public void test() { } }