Defining dependencies for our project
We need to add several dependencies to our project. The first one that we need is the Spring Context dependency. We also need Spring AOP, Boot Starter Web, Actuator, Spring Web, and Spring Web MVC. The application is virtually naked, so let's extend our dependencies:
... dependencies { compile 'org.springframework:spring-context' compile 'org.springframework:spring-aop' compile('org.springframework.boot:spring-boot-starter') compile('org.springframework.boot:spring-boot-starter-web') compile 'org.springframework.boot:spring-boot-starter-actuator' compile 'org.springframework:spring-web' compile 'org.springframework:spring-webmvc' compile("org.jetbrains.kotlin:kotlin-stdlib-jre8:${kotlinVersion}") compile("org.jetbrains.kotlin:kotlin-reflect:${kotlinVersion}") testCompile('org.springframework.boot:spring-boot-starter-test') } ...
Note
These dependencies are crucial!
Spring Context will provide our application...