Connect spring boot to any database

how to connect my spring boot application with any database like h2, my sql, mongo db, post gres, etc