Creating a Starter Project
We'll cover the following...
Initializing the application
If you want to set up the application environment on your system then follow along with the upcoming instructions.
The easiest way to get started is using the Spring Initializr website. We’ll create a Spring Boot RESTful web service that stores data in the in-memory H2 database.
Once you visit the Spring Initializr website, choose either Maven Project or Gradle Project. For language, select Kotlin, of course. Then choose the desired version of Spring Boot—for the examples in this chapter, we use version 2.1.2. For the Group text box, type a desired top-level package name—for example, com.agiledeveloper
. For the Artifact, type todo
. In the text box next to Search for Dependencies, type “Web” and select it from the drop-down list that appears. Also, type “H2” and select it from the drop-down. As a final dependency, type “JPA” and select it ...