Using Postgres Effectively in Spring Boot Applications
Too Long; Didn't Read
Spring Boot supports many databases such as H2, MySQL, Postgres, MongoDB, and more. To use Postgres you need to:
1. Add dependencies to your build tool.
2. Create a new Postgres database with `psql`.
3. Connect Spring Boot to your Postgres Database.
4. Create an entity with Hibernate.
5. Create a repository with Spring Data JPA.
6. Create a controller that uses your repository.