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>
AI 代码解读

spring:
application:

name: eureka-server
AI 代码解读

server:
port: 8762

eureka:
instance:

hostname: es1
AI 代码解读

server:

enableSelfPreservation: false
eviction-interval-timer-in-ms: 4000
AI 代码解读

client:

registerWithEureka: false
fetchRegistry: false
serviceUrl:
  defaultZone: http://192.168.106.1:8762/eureka/ #10.67.31.148
AI 代码解读
目录
相关文章
|
8月前
SpringCloud Eureka的相关配置
SpringCloud Eureka的相关配置
56 0
|
2月前
|
Eureka服务注册与发现
Eureka服务注册与发现
39 1
Eureka服务注册与发现
|
1月前
|
Nacos与Eureka的区别
Eureka和Nacos均支持服务注册发现、基于心跳的健康检查及AP模式下的集群数据同步。主要区别在于:心跳频率、服务剔除机制、服务检测与清理周期不同,Nacos还额外提供配置管理功能。
48 0
Nacos与Eureka比较?
【6月更文挑战第29天】Nacos与Eureka比较?
247 2
Eureka详解
Eureka详解
78 0
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等