ZuulApplication.java 595 字节
Newer Older
Q
qinyingjie 已提交
1 2 3
package com.kwan.springcloud;


Q
qinyingjie 已提交
4 5 6 7
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;

Q
qinyingjie 已提交
8 9 10 11 12 13 14 15 16 17

/**
 * http:/localhost:8888/portal-service/portal/1
 * <p>
 * http:/localhost:8888/goods-service/kwanGoodsInfo/1
 *
 * @author : qinyingjie
 * @version : 2.2.0
 * @date : 2023/1/16 10:02
 */
Q
qinyingjie 已提交
18 19 20 21 22 23 24 25 26 27
@EnableZuulProxy
@SpringBootApplication
public class ZuulApplication {

    public static void main(String[] args) {

        SpringApplication.run(ZuulApplication.class, args);
    }

}