spring-boot 프로젝트 생성
intellij new 프로젝트
server:
port: 8000
eureka:
client:
register-with-eureka: true
fetch-registry: true
service-url:
defaultZone: http//localhost:8761/eureka
spring:
application:
name: apigateway-service
cloud:
gateway:
mvc:
route:
- id: first-service
uri: <http://localhost:8081/>
predicates:
- Path-/first-service/**
- id: second-service
uri: <http://localhost:8082/>
predicates:
- Path-/first-service/**