HCLTech interview question

How does spring boot connects with the database?

Interview Answer

Anonymous

19 Aug 2025

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