1 Examples
( 1 ) create a sample micro-business services
First, dependence Spring-Boot-Starter-Web .
Then, modify the Application :
Finally, modify Application.properties:
( 2 ) create a gateway
First, dependence Spring-Boot-Starter-Web , Spring-Cloud-Starter-Netflix-Zuul .
Then, modify the Application category:
Add filter:
Finally, modify application.properties:
( 3 ) Testing
Start micro-services, port 8090.
Start the gateway, the port is 8080.
In the browser Chrome visit:
This time, the show gateway command line: