diff --git a/config-data/gateway-service.yml b/config-data/gateway-service.yml index 4bf0b78..c72e43d 100644 --- a/config-data/gateway-service.yml +++ b/config-data/gateway-service.yml @@ -18,12 +18,12 @@ spring: - id: user-service uri: lb://user-service predicates: - - path=/users/** + - Path=/users/** - id: bike-service uri: lb://bike-service predicates: - - path=/bikes/** + - Path=/bikes/** - id: car-service uri: lb://car-service predicates: - - path=/cars/** \ No newline at end of file + - Path=/cars/** \ No newline at end of file diff --git a/config-service/src/main/resources/application.yaml b/config-service/src/main/resources/application.yaml index b1bde59..990a737 100644 --- a/config-service/src/main/resources/application.yaml +++ b/config-service/src/main/resources/application.yaml @@ -5,7 +5,7 @@ spring: config: server: git: - defaultLabel: multiple-instantces + defaultLabel: gateway uri: https://git.gzcode.xyz/atancito/MicroservicesTutorial searchPaths: config-data application: diff --git a/gateway-service/src/main/java/com/example/gatewayservice/GatewayServiceApplication.java b/gateway-service/src/main/java/com/example/gatewayservice/GatewayServiceApplication.java index e126468..ff674d1 100644 --- a/gateway-service/src/main/java/com/example/gatewayservice/GatewayServiceApplication.java +++ b/gateway-service/src/main/java/com/example/gatewayservice/GatewayServiceApplication.java @@ -2,8 +2,10 @@ package com.example.gatewayservice; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.netflix.eureka.EnableEurekaClient; @SpringBootApplication +@EnableEurekaClient public class GatewayServiceApplication { public static void main(String[] args) {