


pom.xml에 의존성을 추가해야 한다.<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bootstrap</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-gateway-server-webflux</artifactId>
</dependency>
spring: cloud: gateway: server: webflux: # 요청을 적절한 서비스로 전달하기 위한 설정(라우팅) routes: - id: department-service # 요청이 라우팅될 때 실제 서비스의 주소를 의미한다. uri: lb://department-service # 라우팅 조건을 정의한다. predicates: - Path=/department/** # 경로 재작성 필터로 요청 경로를 다른 경로로 변경한다. filters: - RewritePath=/department/(?<path>.*), /$\\{path}
경로를 보고 departm