1.创建client-server
next->
选两个:
选client
选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: '*'
加注解:@EnableDiscoveryClient 也可用 @EnableEurekaClient
测试一下: