SpringCloud 使用Zuul构建微服务网关

 参考地址:https://blog.csdn.net/fivehundredyearsago/article/details/80730119

@EnableZuulProxy//开启网关   只要启动网关就可以了
@EnableEurekaclient
@SpringBootApplication
public class AppZuull{
    public static void main(string[] args){|
        SpringApplicatgion.run(AppZuull.class,args);
    }
}


zuul有以下功能:

Authentication
Insights
Stress Testing
Canary Testing
Dynamic Routing
Service Migration
Load Shedding
Security
Static Response handling
Active/Active traffic management
 

猜你喜欢

转载自blog.csdn.net/qq_25635139/article/details/87886982