2团
Published on 2025-04-14 / 0 Visits
0
0

Spring WebFlux配置API路径

SpringBoot中配置API路径,参照如下配置:

server:
  servlet:
    context-path: /api/v1

然而在Spring WebFlux项目中,需要按照如下方式配置API路径:

spring:
  application:
    name: api-service
  webflux:
    base-path: "/api/v1"


Comment