Dependency Injection for Kotlin with Injekt 1. Introduction Dependency Injection is a software development pattern where we separate object creation from the objects that are being created. We can use this to keep our main application code as clean as possible. This, in turn, makes it easier to work with and… Continue Reading kotlin-dependency-injection-with-injekt

Guide to the Kotlin Exposed Framework 1. Introduction In this tutorial, we’re going to look at how to query a relational database using Exposed. Exposed is an open source library (Apache license) developed by JetBrains, which provides an idiomatic Kotlin API for some relational database implementations while smoothing out the… Continue Reading kotlin-exposed-persistence

Jackson Support for Kotlin 1. Overview In this tutorial, we’ll discuss the Jackson support for Kotlin. We’ll explore how to serialize and deserialize both Objects and Collections. We’ll also make use of @JsonProperty and @JsonInclude annotations. 2. Maven Configuration First, we need to add the jackson-module-kotlin dependency to our pom.xml:… Continue Reading jackson-kotlin

Spring MVC Setup with Kotlin 1. Overview In this quick tutorial, we’ll take a look at what it takes to create a simple Spring MVC project with the Kotlin language. 2. Maven For the Maven configuration, we need to add the following Kotlin dependencies: <dependency> <groupId>org.jetbrains.kotlin</groupId> <artifactId>kotlin-stdlib-jre8</artifactId> <version>1.1.4</version> </dependency> We… Continue Reading spring-mvc-kotlin