The requirements for running this example on your machine are found below.
- Maven 3
- Java 8
- Docker 1.10.3
- Docker Compose 1.9
git clone https://github.com/ThoreauZZ/spring-cloud-example.git
cd spring-cloud-example
mvn installwait for a period of time。
docker-compose up
1. Config : http://localhost:9000/user-service/dev
2. Eureka-dashbord : http://localhost:9001/
$curl -s -H "Accept:application/json" http://localhost:9001/eureka/apps | jq '.applications.application[] | {service: .name, ip: .instance[].ipAddr, prot: .instance[].port."$"}'{
"service": "TURBINE-DASHBORD",
"ip": "172.18.0.10",
"prot": 9010
}
{
"service": "TRADE-SERVICE",
"ip": "172.18.0.8",
"prot": 9007
}
{
"service": "API-GATEWAY",
"ip": "172.18.0.11",
"prot": 9006
}
{
"service": "SERVICE-EXT",
"ip": "172.18.0.9",
"prot": 9005
}
{
"service": "ZIPKIN-UI",
"ip": "172.18.0.6",
"prot": 9012
}
{
"service": "CONFIG-SERVER",
"ip": "172.18.0.5",
"prot": 9000
}
{
"service": "USER-SERVICE",
"ip": "172.18.0.7",
"prot": 9002
}3. Turbine-dashbord : http://localhost:9010/hystrix
 Paste url http://localhost:9010/turbine.stream in Hystrix Dashboard, and moniter stream. 
With implicit grant, sikp code grant. Use the following URL in a web browser
Login(user/password), and redirect to a URL like:
http://localhost:9006/#
access_token=92fd0e5f-4dba-44cd-b199-7fe1aae5a300
&token_type=bearer
&expires_in=43180
&scope=app
TOKEN = 92fd0e5f-4dba-44cd-b199-7fe1aae5a300
$ curl -s http://localhost:9006/ext/user\?id\=1\&token\=sy\&access_token\=92fd0e5f-4dba-44cd-b199-7fe1aae5a300 |jq .{
"id": 1,
"loginName": "erdaoya",
"nickName": "erdaoya",
"password": "1234",
"mobile": "12345678909",
"email": "xx@gmail.com",
"gender": 0,
"registerTime": 2017,
}curl -s http://localhost:9006/user/persionalInfo\?id\=1\&token\=sy\&access_token\=92fd0e5f-4dba-44cd-b199-7fe1aae5a300 |jq .{
"id": 1,
"loginName": "erdaoya",
"nickName": "erdaoya",
"password": "1234",
"mobile": "12345678909",
"email": "xx@gmail.com",
"gender": 0,
"registerTime": 2017,
"updateTime": null
}




