HCLTech Interview Question

How does spring boot connects with the database?

Interview Answer

Anonymous

Aug 19, 2025

Spring Boot connects to a database by auto-configuring a DataSource (via properties) and using JPA to manage queries and persistence.