Spring Boot + Angular 14 + PostgreSQL example: CRUD App

In this tutorial, we will learn how to build a full stack Angular 14 + Spring Boot + PostgreSQL example with a CRUD App. The back-end server uses Spring Boot with Spring Web MVC for REST Controller and Spring Data JPA for interacting with PostgreSQL database. Front-end side is made with Angular 14, HttpClient, Router and Bootstrap 4.

Other versions:
– Angular 10 + Spring Boot + PostgreSQL example
– Angular 11 + Spring Boot + PostgreSQL example
– Angular 12 + Spring Boot + PostgreSQL example
– Angular 13 + Spring Boot + PostgreSQL example
– Angular 15 + Spring Boot + PostgreSQL example
– Angular 16 + Spring Boot + PostgreSQL example

Security: Angular + Spring Boot: JWT Authentication example

Upload: Angular + Spring Boot: File upload example

Pagination: Angular + Spring Boot: Pagination example

Read More

Spring Boot + Angular 14 + MySQL: CRUD example

In this tutorial, we will learn how to build a full stack Angular 14 + Spring Boot + MySQL example with a CRUD App. The back-end server uses Spring Boot with Spring Web MVC for REST Controller and Spring Data JPA for interacting with MySQL database. Front-end side is made with Angular 14, HTTPClient, Router and Bootstrap 4.

Other versions:
– Angular 10 + Spring Boot + MySQL CRUD example
– Angular 11 + Spring Boot + MySQL CRUD example
– Angular 12 + Spring Boot + MySQL CRUD example
– Angular 13 + Spring Boot + MySQL CRUD example
– Angular 15 + Spring Boot + MySQL: CRUD example
– Angular 16 + Spring Boot + MySQL: CRUD example

Security: Angular + Spring Boot: JWT Authentication example

Upload: Angular + Spring Boot: File upload example

Pagination: Angular + Spring Boot: Pagination example

Read More

Spring Boot + Angular 14 example: CRUD (full stack)

In this tutorial, we will learn how to build a full stack Spring Boot + Angular 14 example with a CRUD Application. The back-end server uses Spring Boot with Spring Web MVC for REST Controller and Spring Data JPA for interacting with embedded database (H2 database). Front-end side is made with Angular 14, HttpClient, Router and Bootstrap 4.

Run both Project on same server/port:
How to Integrate Angular with Spring Boot Rest API

Security: Angular + Spring Boot: JWT Authentication example
Upload: Angular + Spring Boot: File upload/download example
Pagination: Angular + Spring Boot: Pagination example

Newer versions:
– Spring Boot + Angular 15: CRUD example
– Spring Boot + Angular 16: CRUD example

Read More

JPA/Hibernate One To Many Unidirectional example Spring Boot

In this tutorial, I will show you how to implement Spring JPA One-To-Many Unidirectional mapping with Hibernate in a Spring Boot example using @OneToMany annotation. You’ll know:

  • How to configure Spring Data, JPA, Hibernate to work with Database
  • How to define Data Models and Repository interfaces for JPA One-To-Many Unidirectional mapping
  • Way to use Spring JPA to interact with Database for One-To-Many Unidirectional association
  • Way to create Spring Rest Controller to process HTTP requests

Related Posts:
– JPA One To One example
– JPA Many to One example
– JPA Many to Many example
– Validate Request Body in Spring Boot
– Spring Boot Token based Authentication with Spring Security & JWT
– Spring JPA + H2 example
– Spring JPA + MySQL example
– Spring JPA + PostgreSQL example
– Spring JPA + Oracle example
– Spring JPA + SQL Server example
– Documentation: Spring Boot + Swagger 3 example (with OpenAPI 3)
– Caching: Spring Boot Redis Cache example

Read More