新建一个项目zuul:
pom.xml如下:
主方法:
配置文件:
然后启动项目:
访问http://localhost:1114/producer/hello/hello?name=zmq,如下:
访问http://localhost:1114/consumer/hello/sayHello?name=zmq,如下:
说明路由起左右了。
收工!
新建一个项目zuul:
pom.xml如下:
主方法:
配置文件:
然后启动项目:
访问http://localhost:1114/producer/hello/hello?name=zmq,如下:
访问http://localhost:1114/consumer/hello/sayHello?name=zmq,如下:
说明路由起左右了。
收工!