Fixed gateway-service.yaml
parent
41e316f78b
commit
7609216b03
|
@ -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/**
|
||||
- Path=/cars/**
|
|
@ -5,7 +5,7 @@ spring:
|
|||
config:
|
||||
server:
|
||||
git:
|
||||
defaultLabel: multiple-instantces
|
||||
defaultLabel: gateway
|
||||
uri: https://git.gzcode.xyz/atancito/MicroservicesTutorial
|
||||
searchPaths: config-data
|
||||
application:
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue