package com.kidgrow.zuul.config;
|
|
import lombok.Data;
|
|
/**
|
* 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br>
|
*
|
* @Description: 路由实体<br>
|
* @Project: <br>
|
* @CreateDate: Created in 2020/2/22 14:31 <br>
|
* @Author: <a href="4345453@kidgrow.com">liuke</a>
|
*/
|
@Data
|
public class ZuulRouteEntity {
|
/**
|
* The ID of the route (the same as its map key by default).
|
*/
|
private String id;
|
/**
|
* The path (pattern) for the route, e.g. /foo/**.
|
*/
|
private String path;
|
/**
|
* The service ID (if any) to map to this route. You can specify a
|
* physical URL or a service, but not both.
|
*/
|
private String serviceId;
|
/**
|
* A full physical URL to map to the route. An alternative is to use a
|
* service ID and service discovery to find the physical address.
|
*/
|
private String url;
|
/**
|
* Flag to determine whether the prefix for this route (the path, minus
|
* pattern patcher) should be stripped before forwarding.
|
*/
|
private boolean stripPrefix = true;
|
/**
|
* Flag to indicate that this route should be retryable (if supported).
|
* Generally retry requires a service ID and ribbon.
|
*/
|
private Boolean retryable;
|
|
private String apiName;
|
|
private boolean enabled = true;
|
|
private boolean customSensitiveHeaders = true;
|
}
|