参考地址: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