#Kotlin #Spring #Server
In this episode of Spring Time in Kotlin, we explore Kotlin extensions and their applicability in backend development with Spring Framework. Spring provides a number of Kotlin extensions to make its API more convenient for Kotlin programs. A combination of extension functions and syntactic sugar, such as trailing lambdas, will help you to write nice-looking server-side code that is easy to read and maintain.
0:00 Introduction
0:51 Extension functions
2:26 Trailing lambdas
5:02 Spring JdbcTemplate
6:03 Configuring H2 data source
7:00 Query data from the database
8:15 JdbcTemplate API
8:45 Kotlin extensions for JdbcTemplate
10:19 New GET endpoint
10:55 Handling nulls
11:43 Testing the application
12:31 What have we learned?
Source code: https://github.com/kotlin-hands-on/sp...
Documentation on Kotlin Extensions: https://kotlinlang.org/docs/extension...
Documentation on Kotlin in Spring: https://docs.spring.io/spring-framewo...
Kotlin for Serve-Side development: https://kotlinlang.org/lp/server-side/
On this page of the site you can watch the video online Kotlin Extensions in Spring Framework with a duration of hours minute second in good quality, which was uploaded by the user Kotlin by JetBrains 15 February 2021, share the link with friends and acquaintances, this video has already been watched 8,024 times on youtube and it was liked by 240 viewers. Enjoy your viewing!