February 2018
Intermediate to advanced
356 pages
9h 10m
English
To connect our application with our recently created database, we need to configure a couple of lines in the application.yaml file. Once again, thanks to Spring Data Starter, our connection will be configured automatically.
We can produce the connection objects using the @Bean annotations as well, but there are many objects to configure. We will go forward with the configuration file. It is more simple and straightforward to understand as well.
To configure the database connections, we need to provide the Spring Framework a couple of attributes, such as the database URL, database username, password, and also a driver class name to instruct the JPA framework about the full path of the JDBC class.
The