include module:
- discovery
- gateway
- config
- reservation-service
- reservation-client
- hystrix-dashboard
- monitor
- zipkin
- auth-server
- MacOS/Unix/Linux (/etc/hosts), windows (C:\Windows\System32\drivers\etc)
127.0.0.1 config discovery zipkin - install rabbitmq use brew.
brew install rabbitmq. - run it in order.
discovery -> EurekaServiceApplication.java Show me
config -> ConfigServiceApplication.java
gateway -> ApiGatewayApplication.java
auth-server -> AuthApplication.java
reservation-service -> ReservationServiceApplication.java
reservation-client -> ReservationClientApplication.java
hystrix-dashboard -> HystrixDashboardApplication.java Show me
monitor -> TurbineApplication.java Show me
zipkin -> ZipkinApplication.java Show me - You can run multi reservation-service and reservation-client test loadbalance with click this
or apache bench [ab -c100 -n 10000 http://localhost:10000/reservation/hello]
or Jmeter test it. - How to run OAuth2 in auth-server.
- In the browser:
http://localhost:10000/uaa/oauth/authorize?response_type=code&client_id=whoami&scope=app&state=123456&redirect_uri=http://www.google.com, first time input username:whoami and password:123456. - In the terminal. Get last code from last address and replace {{code}} in next command.
curl -X POST -H "Cache-Control: no-cache" -H "Content-Type: application/x-www-form-urlencoded" -d 'grant_type=authorization_code&code={{code}}&redirect_uri=http://www.google.com' "http://whoami:123456@localhost:10000/uaa/oauth/token"
- In the browser:
- Getting started with Spring Cloud by Josh Long
- This lab is references YouTube Getting Started with Spring Cloud, Thank you Dr. Dave Syer, Josh Long.[]
- Dive into Eureka – nobodyiam's blog
- About Spring cloud security OAuth2