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

是什么

干嘛用

怎么用

引入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);
}

}

是什么 干嘛用 怎么用 引入jar org.springframework.cloud spring-cloud-starter-zuul 配置文件boostrapt.yml 这里写代码片 application入口类 @EnableZuulProxy @SpringBootApplication @EnableEurekaClient @EnableZuulProxy public class ZuulServiceApplication { public static void main(String[] args) { SpringApplication.run(ZuulServiceApplication.class, args); } }
是什么 干嘛用 怎么用 引入jar org.springframework.cloud spring-cloud-starter-zuul 配置文件boostrapt.yml 这里写代码片 application入口类 @EnableZuulProxy @SpringBootApplication @EnableEurekaClient @EnableZuulProxy public class ZuulServiceApplication { public static void main(String[] args) { SpringApplication.run(ZuulServiceApplication.class, args); } }
经验分享 程序员 微信小程序 职场和发展