Eureka Service

eureka:
  client:
    service-url:
      default-zone: http://localhost:8761/eureka
server:
  port: 8001
spring:
  application:
    name: cloud-service
package com.cloud.cloudservice1;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

@SpringBootApplication
@EnableEurekaServer
public class CloudService1Application {

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

猜你喜欢

转载自www.cnblogs.com/tianmh/p/9198092.html
今日推荐