Gateway

The next step in our distributed system is defining the gateway. The gateway is used to allow all responses to originate from a single host. Let's create another Spring Cloud application. Make sure it's defined as in the following files:

  • The build.gradle file is as follows:
buildscript { ext { kotlinVersion = '1.1.60' springBootVersion = '2.0.0.M6' } repositories { mavenCentral() maven { url "https://repo.spring.io/snapshot" } maven { url "https://repo.spring.io/milestone" } } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}") classpath("org.jetbrains.kotlin:kotlin-allopen:${kotlinVersion}") } } apply plugin: ...

Get Building Applications with Spring 5 and Kotlin now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.