Spring Boot with Kotlin & JUnit 5 - Tutorial 7 - Web Layer
Описание
Spring Boot - Веб-уровень - Контроллеры и интеграционное тестирование с помощью JUnit 5
Веб-уровень, расположенный на самом верху нашей многоуровневой архитектуры, отвечает за получение запроса и выдачу надлежащего ответа. Все, что находится между ними, обрабатывается другими уровнями, где и происходит реальная бизнес-логика. В Spring Boot этот слой представлен контроллерами (с пометкой @Controller или @RestController), названными в честь шаблона model-view-controller (MVC).
В этом видео мы создаем начальный веб-уровень для нашего веб-сервиса RESTful Spring Boot, определяя банковский контроллер. Кроме того, мы проводим наш первый интеграционный тест, который охватывает все уровни приложения, чтобы проверить, все ли подключено должным образом. Для этого мы используем Spring's MockMvc для автоматического тестирования REST API.
----------------------------------------------------------------------------------------------------------------------------------------
Spring Boot - Web Layer - Controllers & Integration Testing with JUnit 5
At the top of our layered architecture, the web layer is responsible for receiving request and returning the proper response. Everything in between is handled by the other layers, where the actual business logic happens. In Spring Boot, this layer is represented by controllers (annotated with @Controller or @RestController), named after the model-view-controller (MVC) pattern.
In this video, we create the initial web layer for our RESTful Spring Boot webservice by defining a BankController. Additionally, we create our first integration test that covers all layers of the application to see if everything plugs together as it should. For this, we use Spring’s MockMvc for automated testing of REST APIs.
Рекомендуемые видео




















