Skip to Main Content
Spring Boot and Angular
book

Spring Boot and Angular

by Devlin Basilan Duldulao, Seiji Ralph Villafranca
December 2022
Beginner to intermediate content levelBeginner to intermediate
438 pages
8h 53m
English
Packt Publishing
Content preview from Spring Boot and Angular

4

Setting Up the Database and Spring Data JPA

In the previous chapter, you learned about Spring Boot’s fundamentals to develop our backend application, such as dependency injection, beans, and annotations. In addition, we now know how to create a Spring Boot project using Spring Initializr.

This chapter will teach you how to connect your Spring Boot application to a database by adding a PSQL container and PostgreSQL dependencies and accessing data using the Java Persistence API (JPA).

In this chapter, we will cover the following topics:

  • Connecting to database using a PSQL container
  • Spring Data JPA
  • Adding Spring Data JPA and PostgreSQL dependencies
  • Connecting to a database

Technical requirements

Here is what you need to complete this chapter: ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Full-Stack React with Spring Boot

Full-Stack React with Spring Boot

Andy Olsen
Spring Boot Fundamentals

Spring Boot Fundamentals

Bharath Thippireddy

Publisher Resources

ISBN: 9781803243214Supplemental Content