For testing the persistence layer in Spring Boot, the _____ annotation is used to test slicing the application context and loading only relevant beans related to data JPA.

  • @DataJpaTest
  • @MockBean
  • @SpringBootTest
  • @WebMvcTest
The @DataJpaTest annotation in Spring Boot is used for testing the persistence layer. It slices the application context and loads only the relevant beans related to data JPA, making it efficient for testing data access operations.
Add your answer
Loading...

Leave a comment

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