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: ...