Spring Boot 2 - CRUD - Part 2 | Spring Boot+MVC+JPA+H2+Thymeleaf+Bootstrap+Junit5 | Code Journal

preview_player
Показать описание
Hello, everyone, and welcome to the video Series - Built it with Spring Boot.

This video series tries to build Java applications using Spring Boot, which has become de-facto standard for building applications in Java world. It makes it easy to create stand-alone, production-grade Spring based Applications. It cuts down on a lot of boilerplate code, and its sensible defaults for configurations allows to build applications in super quick time

The project we are building here is a Spring Boot Web application that demonstrates CRUD operations. The application allows to manage student information, by a paginated student list, adding a new student, viewing student information, editing them, and deleting them. The application also has Login/Logout feature.

The technology stack consists of - Spring Boot, Undertow, Spring MVC, Java Persistence API, Hibernate, Thymeleaf, Bootstrap CSS, Spring Security, and Junit5.

This video is Part 2 of 5, in which we will configure the H2 database, and create our JPA repositories which will make calls to the database via Hibernate. We will also, write JUnit 5 tests for the Repository classes using @DataJpaTest.

All Video of this Series

#SpringBoot #SpringBoot2 #CRUD #JPA #Hibernate #SpringMVC #Undertow #Bootstrap #Thymeleaf
Рекомендации по теме
Комментарии
Автор

great tutorial, its helped me so much! looking forward to the next one!

chris
Автор

Hello Sir, why in the method you don't pass the created id in the first line when creating the new Student object? I can see on your webiste and there you passed this id to the Student constructor. So how can this test be correct?

dominikolko
Автор

Hi Code Journal, Great videos, I watched and followed along with you. Ran into a small issue when experimenting.

I went back to reconfigure the mem database to file:~/test_db and it seems that the tables aren't created, what is creating the tables on the memory database?

If I load the app without auto creating some items and with using the h2 console to add the tables/column it works afterwards, but what am I missing to auto create the tables?

some error output: 2021-10-15 12:53:50.117 ERROR 13636 --- [ restartedMain] : Table "STUDENT" not found; SQL statement:

omishan