Spring Boot Tutorial for Beginners | Full Course
Beginner's Spring Boot Course.
In this spring boot course, you’ll learn how to create a REST API with Spring Boot from start to finish, i.e not just coding but from project set up through to deployment.
Links to all references are provided in each module in javacodehouse website as well as a link to get the completed source code.
Timestamps for quick navigation through the course
---------------------
00:00 Introduction
02:44 Project setup
13:11 Design
18:31 Implementing the controller
36:08 Implementing the Service
46:04 Spring Data
0:02:37 Integration Testing
1:11:45 Spring Boot Annotations
1:27:37 Spring Boot Transactions Handling
1:40:23 Integration Testing
1:48:25 Implementing the POST Request
2:01:14 Integration Testing
2:09:36 End to end testing with POSTMAN
2:11:21 Implementing the DELETE Request
2:19:50 Integration Testing
2:25:03 How to deploy a spring boot application
2:32:15 Connecting to MySQL database
Following are the modules
- Project set up
- Design
- Implementation with unit testing and integration testing.
- Deployment
Project set up
---------------
Here I show you two different methods of setting up the project. You could choose to use either one depending on your preference.
This module consists of two lessons,
Lesson 1: Set up the project using Spring initializer
In this lesson, we look at,
- How to use the spring initializer to create a project.
- Spring starter dependencies.
- Discuss the content i.e each and every line, of the generated build file.
Lesson 2: Set up the project using Gradle without Spring initializer
In this lesson,
- We set up the project manually using Gradle.
- Generate a java project using Gradle command line.
- Work on the build file to add the required plugins and dependencies.
- Discuss core Gradle plugins, community plugins and the Gradle plugins portal.
- Then generate the eclipse configuration files and import the project to eclipse.
Design
--------
This module is consolidated into one lesson.
Lesson 3: Design
In this lesson we discuss,
- What is REST
- Some basic REST API design principals
- Design the Comments API
- Application architecture of a Spring Boot project.
Testing and implementation
----------------------------
This module consists of several lessons on unit testing implementation and also integration testing the API.
Lesson 4: Endpoint implementation to retrieve comments - part 1 (The Controller)
In this lesson, we implement a method to return all comments of a particular post, in a test-first manner.
That means, as, in all of the implementations throughout the project, we write unit tests before writing a single line of logic.
Lesson 5: Endpoint implementation to retrieve comments - part 2 (The Service)
In this lesson, we move the business logic to the service layer by refactoring the controller and unit tests.
Lesson 6: Endpoint implementation to retrieve comments - part 3 (The Repository)
In this lesson, we move on to the repository layer and discuss
- Spring Data
- How to use the repository interfaces
Lesson 7: Integration testing - part 1
- MockMVC
- Spring’s testing support and annotations
- Request builders
- Result matchers...
Lesson 8: Making a Spring Boot Application
Here we discuss the spring boot annotations and then add all the required annotations to wire everything up and make the application work.
- Spring boot annotations
Lesson 9: Spring Transaction handling
In this lesson, we discuss the following
- What does transactional mean in terms of executing a method?
- Overview of how spring transaction management works
- @Transactional annotation and its settings
- How to apply transaction management with @Transactional annotation.
- How readOnly applies to transactions.
- Transaction configuration settings
Lesson 10: Integration testing - part 2
Here we continue the integration testing
- use JSONPath expressions to assert the response body.
- Preload and clean up the database before and after a test using script files and annotations.
- Return relevant response codes upon exceptions.
Lesson 12: Endpoint implementation to save a comment
Lesson 13: Integration testing part 3
Lesson 14: End to end test
- Run the application in eclipse
- Save a comment via postman
- Retrieve the saved comment in the browser.
Lesson 15: Endpoint implementation to delete a comment
- Unit tests and implementation of the endpoint for deleting a comment.
- Physical delete vs Logical delete.
Lesson 16: Integration testing part 4
Write some integration tests for deleting the comment
Deployment
------------
Lesson 17: Deployment
Various ways of running the application and war deployment to an external server.
Lesson 18: External database
- Connect to MySQL server.
- How to use the embedded database for integration testing while using an external database for production.
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Spring Boot Tutorial for Beginners | Full Course», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.