Fixed gateway-service.yaml
parent
41e316f78b
commit
7609216b03
|
@ -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/**
|
|
@ -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:
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue