Skip to content

SpringBootMarcusChiu/zuul-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

article: http://confluence.marcuschiu.com/x/6wRDAQ

Run Zuul & Api Servers

run zuul gateway proxy

  • mvn spring-boot:run -Dspring-boot.run.profiles=zuul -Dstart-class=com.marcuschiu.zuulexample.zuul.ZuulExampleApplication

run api server

  • mvn spring-boot:run -Dspring-boot.run.profiles=api -Dstart-class=com.marcuschiu.zuulexample.api.ApiApplication

Test Zuul Gateway Proxy

Test 1

open browser at:

this hits the API server directly

Test 2

open browser at:

this hits the zuul server, which then intercepts it and makes a call to

this is because of the application-zuul.yml file:

zuul:
  routes:
    ...
    teehee:
      path: /teehee/**
      url: http://localhost:8080

Test 3

open browser at:

this hits the zuul server, which then intercepts it and makes a call to

this is because of the application-zuul.yml file:

zuul:
  routes:
    foos:
      path: /default/test
      url: http://localhost:8080

Relevant Articles

About

Zuul Example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages