当前位置:网站首页>Eureka single machine construction

Eureka single machine construction

2022-07-06 16:46:00 Daily enlightenment

(1)

(2)

(3)

(4)

(5)

@SpringBootApplication
@EnableEurekaServer // Represents our current springboot project , As a service registry 
public class EurekaApplication {

    public static void main(String[] args) {
        SpringApplication.run(EurekaApplication.class, args);
    }

}

(6)application.yml

server:
  port: 7000

spring:
  application:
    name: ldx-eureka

eureka:
  instance:
    hostname: ldx-eureka
  client:
    service-url:
      defaultZone: http://127.0.0.1:7000/eureka
    register-with-eureka: false
    fetch-registry: false

 (7)

原网站

版权声明
本文为[Daily enlightenment]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202131314160744.html