Fixed gateway-service.yaml

gateway
atancito 2022-10-02 18:30:11 +02:00
parent 41e316f78b
commit 7609216b03
3 changed files with 6 additions and 4 deletions

View File

@ -18,12 +18,12 @@ spring:
- id: user-service - id: user-service
uri: lb://user-service uri: lb://user-service
predicates: predicates:
- path=/users/** - Path=/users/**
- id: bike-service - id: bike-service
uri: lb://bike-service uri: lb://bike-service
predicates: predicates:
- path=/bikes/** - Path=/bikes/**
- id: car-service - id: car-service
uri: lb://car-service uri: lb://car-service
predicates: predicates:
- path=/cars/** - Path=/cars/**

View File

@ -5,7 +5,7 @@ spring:
config: config:
server: server:
git: git:
defaultLabel: multiple-instantces defaultLabel: gateway
uri: https://git.gzcode.xyz/atancito/MicroservicesTutorial uri: https://git.gzcode.xyz/atancito/MicroservicesTutorial
searchPaths: config-data searchPaths: config-data
application: application:

View File

@ -2,8 +2,10 @@ package com.example.gatewayservice;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
@SpringBootApplication @SpringBootApplication
@EnableEurekaClient
public class GatewayServiceApplication { public class GatewayServiceApplication {
public static void main(String[] args) { public static void main(String[] args) {