SpringCloud project to build (ii) create a simple client and registered with the service registry (client)

1. Create a client-server

next->

 

Option two:

Selected client

 Selected web

  YML:

server:
  port: 8891
spring:
  application:
    name: eureka-client
eureka:
  client:
    ServiceUrl:
      defaultZone: http://user:123456@localhost:8890/eureka/
  instance:
    prefer-ip-address: true
management:
  endpoints:
    web:
      exposure:
        include: '*'
View Code

Annotated: @EnableDiscoveryClient

 have a test:

 

 

-.

Guess you like

Origin www.cnblogs.com/DarGi2019/p/12190462.html
Recommended