AOT and Native Image Support

Spring Cloud Gateway 4.0.0 支持 Spring AOT 转换和本机映像,并要求在使用负载均衡路由时明确定义 LoadBalancerClient 服务 ID,可以通过使用 @LoadBalancerClient 注解的 valuename 属性,或使用 spring.cloud.loadbalancer.eager-load.clients 属性的值来实现。

4.0.0 起,Spring Cloud Gateway 支持 Spring AOT 转换和本机映像。

Since 4.0.0, Spring Cloud Gateway supports Spring AOT transformations and native images.

如果你要使用负载均衡的路由,你需要明确定义 LoadBalancerClient 服务 ID。你可以使用 @LoadBalancerClient 注释的 valuename 属性,或使用 spring.cloud.loadbalancer.eager-load.clients 属性的值进行定义。

If you’re using load-balanced routes, you need to explicitly define your LoadBalancerClient service IDs. You can do so by using the value or name attributes of the @LoadBalancerClient annotation or as values of the spring.cloud.loadbalancer.eager-load.clients property.