Instructing Spring Boot to connect to a database can be done in application.properties via the JDBC URL, user and password as in the following example:
spring.datasource.url=jdbc:mysql://localhost:3306/mydb?createDatabaseIfNotExist=true
spring.datasource.username=root
spring.datasource.password=root