eureka

简介:

    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>1.5.9.RELEASE</version>
    <relativePath /> <!-- lookup parent from repository -->
</parent>

<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <java.version>1.8</java.version>
</properties>

<dependencies>
    <!--eureka server -->
    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-eureka-server</artifactId>
    </dependency>

    <!-- spring boot test -->
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
    </dependency>
</dependencies>

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-dependencies</artifactId>
            <version>Edgware.RELEASE</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
    </plugins>
</build>

<repositories>
    <repository>
        <id>spring-milestones</id>
        <name>Spring Milestones</name>
        <url>https://repo.spring.io/milestone</url>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>
    <repository>
        <id>maven-repository</id>
        <url>http://repo1.maven.org/maven2/</url>
    </repository>
</repositories>

spring:
application:

name: eureka-server

server:
port: 8762

eureka:
instance:

hostname: es1

server:

enableSelfPreservation: false
eviction-interval-timer-in-ms: 4000

client:

registerWithEureka: false
fetchRegistry: false
serviceUrl:
  defaultZone: http://192.168.106.1:8762/eureka/ #10.67.31.148
目录
相关文章
|
6月前
SpringCloud Eureka的相关配置
SpringCloud Eureka的相关配置
45 0
|
3月前
|
负载均衡 监控 Java
Eureka介绍与使用
Eureka介绍与使用
|
3月前
|
存储 缓存 负载均衡
解决eureka服务注册名报错
解决eureka服务注册名报错
46 0
|
5月前
|
负载均衡 Cloud Native 数据可视化
Nacos与Eureka比较?
【6月更文挑战第29天】Nacos与Eureka比较?
218 2
|
5月前
|
微服务
springCloud之服务注册与发现Eureka
springCloud之服务注册与发现Eureka
|
6月前
|
Java 微服务 Spring
Eureka详解
Eureka详解
63 0
|
存储 负载均衡 监控
|
负载均衡 Java Nacos
Nacos和Eureka
Nacos和Eureka
113 0
|
安全 Java Maven
SpringCloud(Eureka的使用)
SpringCloud(Eureka的使用)
134 0
|
缓存 负载均衡 NoSQL
Eureka应用
Eureka应用
136 0
Eureka应用