引言
- 网关统一处理跨域配置,后端服务和nginx无需处理跨域问题。
- 利用org.slf4j.MDC存储请求ID,进行跨服务请求跟踪。
- logback管理日志
日志格式:
<property name="log.pattern" value="%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] [%X{request_id}] %-5level %logger{50} - %msg%n"/>
I Spring Cloud Gateway 跨域配置
java.lang.IllegalArgumentException: When allowCredentials is true,
allowedOrigins cannot contain the special value "*"since that cannot be set on the "Access-Control-Allow-Origin"
response header. To allow credentia