To test interactions with the database in isolation, Spring Boot provides the _____ annotation, which disables full auto-configuration and applies only JPA-related configurations.

  • @DataJpaTest
  • @EntityTest
  • @SpringBootTest
  • @WebMvcTest
The @DataJpaTest annotation in Spring Boot is used to test interactions with the database. It disables full auto-configuration and applies only JPA-related configurations, allowing you to focus on testing data access components.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *