Book Image

Server-Side Development with Kotlin and Spring Boot [Video]

By : Alberto Di Martino
Book Image

Server-Side Development with Kotlin and Spring Boot [Video]

By: Alberto Di Martino

Overview of this book

<p><span id="description" class="sugar_field">Kotlin is an open source programming language that makes it easy to build simple, reliable, and efficient software. Kotlin is a great fit for developing server-side applications, allowing web developers to write expressive code while maintaining full compatibility with existing Java-based technology stacks and providing a smooth learning curve. This video is a start-to-finish walkthrough of the topics most critical to anyone building a new web application. Whether keeping your application secure, connecting to your database, enabling token-based authentication, or developing Restful APIs, this video has you covered. You'll learn how to use Gradle with Kotlin and integrate it with Webpack, ECMAScript 8, and React to create elegant UIs for your web applications. You'll learn about routing requests and implementing SSL. Moving on, you'll get to know about best practices to keep user data safe. Finally you'll learn how to deploy your application on the cloud. By the end of the video, you will be able to build robust, secure, and fully-featured applications for the web.</span></p> <h2><span class="sugar_field">Style and Approach</span></h2> <p><span class="sugar_field"><span id="trade_selling_points_c" class="sugar_field">Step-by-step practical guide filled with real-world use cases and examples that will help Android developers use Kotlin to develop their own apps effectively.</span></span></p>
Table of Contents (5 chapters)
Chapter 5
Testing Our Backend and Handling Errors
Content Locked
Section 3
Handling Errors
We fixed our problem and now the backend controls the creation of employee and validate that request are valid. But, the message we return to clients when they send an incorrect request is very verbose. In this video, we are going to learn how to wrap the error message in a more human readable format. - Import the spring-boot-starter-hateoas dependency - Create a Controller Advice - Create a custom object to wrap our error response