Spring Boot In Action - [verified]
Spring Boot makes assumptions about the project structure and dependencies. For example, if the Spring Data JPA library is detected on the classpath, Spring Boot automatically configures a DataSource and an EntityManagerFactory using an in-memory database (like H2) by default. Developers can override these defaults, but the framework provides a working baseline instantly.
@MockBean private UserService userService; spring boot in action

GW-BASIC
Reference