# Spring 5 course : Udemy - Unit 2

[toc]

## Unit 2: Building a Spring Boot Web App

*Quick overview of Spring in a very productive way.*

Generate html with dynamic content.

Disclaimer: how to use this but not going fully in details in this chapter.

- Spring Boot
- Spring MVC
- Spring Data JPA (Hibernate)
- H2 database



## Spring Initializr

Back in time you needed to create you own project with maven. Spring Initializr does this job for you (maven or gradle).

https://github.com/spring-projects/spring-boot/tree/main/spring-boot-project/spring-boot-starters



Create a simple webapp with: https://start.spring.io/

- Spring Web (Spring mvc)
- Spring Data JPA (abstraction for hibernate)
- H2 Database (our in memory database)



### Open the project in IntelliJ

For a maven project: ***From Existing source > Select the pom.xml*** file at the root of the project

Look at currated dependencies in the pom.xml by ctrl+click on the `parent.artifactId`

From the currated dependancies you can omit the version when you add them to your pom.xml because they are references in `spring-boot-parent-2.x.x.RELEASE.pom`



Session 3 - 28/10/2022 - ended here

<hr>



***Session 4 - 30/10/2022 : [Starts from here](https://sparkers.udemy.com/course/spring-framework-5-beginner-to-guru/learn/lecture/17789252#overview) Github workflow.***