- Eureka服务器discovery-server
- Time微服务服务端time-service
- Time微服务客户端time-client
校验:
http://localhost:8761/
在Eclipse IDE中,以定制配置方式运行time-service微服务,
Run As -> Run Configurations -> Spring Boot App
配置服务启动端口Override Properties
第一次运行使用4444
服务器端口
server.port=4444
第二次运行使用5555
服务器端口
server.port=5555
UI校验:
http://localhost:8761/
API校验:
http://localhost:8761/eureka/apps
直接以Spring Boot App
方式运行time-client微服务
校验Ribbon负载均衡生效,浏览器访问:
http://localhost:8080