spring-cloud-learning can be used as a project to learn microservices, and it's mainly contain service discovery, service gateway, configuration management, circuit breakers, application monitor.
To be supplemented...
Two methods will mainly introduced, but no matter what you need to clone the code.
$ git clone https://github.com/coderqianlq/spring-cloud-learning.git
You can use ide to import the project with maven, and use ide or use command line to start project.
$ mvn spring-boot:run
You can also package the code and run it.
$ java -jar xxx.jar
First, you have to make sure you have installed docker and start docker server.
$ docker --version Docker version 18.06.1-ce, build e68fc7a
Then, you need to enter each submodule and execute the docker building command.
$ cd eureka-server $ mvn clean package -Pdocker docker:build
Next, return to the parent module and execute docker-compose command.
$ docker-compose up -d
Finally, you can open the registration center(default url: http://localhost:8761) to see if the service is registered successfully.
|admin-dashboard||8040||Spring boot Admin Dashboard for monitor spring cloud services|
|config-server||8504||if you change the port, you need also modify bootstrap.yml of service-customer.|
|service-customer||8200||Integrated multiple components, including Feign, Spring Cloud Config, Spring Cloud Stream, Spring Cloud Bus|
|zipkin-server||9411||if you change the port, you need also modify bootstrap.yml of service-customer.|
|Spring Boot||Spring Cloud||Spring Boot Admin||Swagger2|
MIT © CoderQian