且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

spring cloud放弃系列之--3-zuul

更新时间:2021-10-15 02:11:30

是什么

干嘛用

怎么用

引入jar


        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-zuul</artifactId>
        </dependency>

配置文件boostrapt.yml

这里写代码片

application入口类 @EnableZuulProxy

@SpringBootApplication
@EnableEurekaClient
@EnableZuulProxy
public class ZuulServiceApplication {

public static void main(String[] args) {
    SpringApplication.run(ZuulServiceApplication.class, args);
}

}