Here is a spring cloud template, some modules Spring cloud Eureka + Spring boot admin + Spring Cloud Zuul + a regular spring cloud service service-a
Eureka-server: Registry, Api-gateway: Gateway, admin-server:spring boot Admin server, service-a: General Service A
1. Registration Center
Enter localhost:1111 in the browser and enter waterlufei,123456 to see the registry
Register this piece, allow yourself to register (easy to AdminServer monitoring), turn off service security, turn on permissions control
2. General Service
Access Localhost:4445/test can return interface data hahah, Access localhost:4445 can see our own written home page
3. Service Gateway
Access Localhost:2222/api-a/test can return interface data hahah, Access localhost:2222/api-a/can see our own written home page, the implementation of access through the gateway
4. Admin Service Side
Access localhost:9527, input waterlufei,9527 to see Performance monitoring page
Just go in there. A variety of performance logs to see the service, etc.
To be aware of:
1. If you need to see the log option, you need to specify the build log file in the service's configuration file
2.admin-server the service name specified must be lowercase
GitHub Source Address: Https://github.com/waterlufei/spring-cloud
Spring Boot admin