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("...