文档章节

No2 OpenFirein 创建Spring Cloud Eureka (Server)

O
 OpenFirein
发布于 2017/07/14 15:51
字数 5351
阅读 42
收藏 0

1. 创建 openfirein-cloud-eureka-server

执行完之后:java和resources会变成下面这个样子

配置 openfirein\pom.xml 增加 dependency

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.openfirein</groupId>
    <artifactId>openfirein</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <modules>
        <module>openfirein-cloud</module>
    </modules>
    <packaging>pom</packaging>

    <name>openfirein</name>
    <description>OpenFirein</description>

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

        <!--Spirng Boot 的版本-->
        <spring.boot.version>1.5.4.RELEASE</spring.boot.version>
        <!--Spirng Cloud 的版本-->
        <spring.cloud.version>1.3.1.RELEASE</spring.cloud.version>
    </properties>

    <dependencyManagement>
        <dependencies>
            <!-- 此工程将作为父pom,不能直接增加<parent>,通过如下方式 配置Spirng Boot-->
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-dependencies</artifactId>
                <version>${spring.boot.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>

            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter</artifactId>
                <version>${spring.boot.version}</version>
            </dependency>

            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-test</artifactId>
                <version>${spring.boot.version}</version>
                <scope>test</scope>
            </dependency>

            <!--配置管理开发工具包,可以让你把配置放到远程服务器,目前支持本地存储、Git以及Subversion-->
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-starter-config</artifactId>
                <version>${spring.cloud.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-config-server</artifactId>
                <version>${spring.cloud.version}</version>
            </dependency>

            <!-- 云端负载均衡,一个基于 REST 的服务,用于定位服务,以实现云端的负载均衡和中间层服务器的故障转移。 -->
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-starter-eureka</artifactId>
                <version>${spring.cloud.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-starter-eureka-server</artifactId>
                <version>${spring.cloud.version}</version>
            </dependency>

        </dependencies>
    </dependencyManagement>

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

其中下方的为新增加的

            <!-- 云端负载均衡,一个基于 REST 的服务,用于定位服务,以实现云端的负载均衡和中间层服务器的故障转移。 -->
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-starter-eureka</artifactId>
                <version>${spring.cloud.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-starter-eureka-server</artifactId>
                <version>${spring.cloud.version}</version>
            </dependency>

工程层级结构如下:

EurekaServerStartApplication.java

package com.openfirein.eureka;

import org.springframework.boot.Banner;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

// @SpringBootApplication 注解等价于以默认属性使用 @Configuration , @EnableAutoConfiguration 和 @ComponentScan 。
@SpringBootApplication
// @EnableEurekaServer: 该注解表明应用为eureka服务,有可以联合多个服务作为集群,对外提供服务注册以及发现功能
@EnableEurekaServer
public class EurekaServerStartApplication {
    public static void main(String[] args) {
        SpringApplicationBuilder springApplicationBuilder = new SpringApplicationBuilder(EurekaServerStartApplication.class);
        springApplicationBuilder.web(true);
        springApplicationBuilder.bannerMode(Banner.Mode.CONSOLE);
        springApplicationBuilder.run(args);
    }
}

banner.txt

${AnsiColor.DEFAULT}
::: http://${eureka.instance.hostname}:${server.port}/eureka/
::: OS (${AnsiColor.YELLOW}${os.name}${AnsiColor.DEFAULT})
::: JAVA (v${AnsiColor.YELLOW}${java.version}${AnsiColor.DEFAULT})
::: Spring-Boot (v${AnsiColor.WHITE}${spring-boot.version}${AnsiColor.DEFAULT})

启动 Spring Cloud Eureka Server
链接: http://localhost:9800/
测试方式:http://localhost:9800

bootstrap.yml

# 要读取的配置文件application属性
spring:
  application:
    name: cloud-eureka-server
  cloud:
    config:
      profile: dev # 要读取的配置文件profile属性
      label: master #这是一个服务器端功能标签“版本”的一组配置文件
      uri: http://localhost:8088/

上面记载的spring:cloud:config:url为之前的Spring Cloud Config 的路径

配置:openfirein\openfirein-cloud\openfirein-cloud-eureka-server\pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <parent>
        <artifactId>openfirein-cloud</artifactId>
        <groupId>com.openfirein</groupId>
        <version>0.0.1-SNAPSHOT</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>openfirein-cloud-eureka-server</artifactId>

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-config</artifactId>
        </dependency>

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

</project>

Eureka Server 的配置文件:

在这个openfirein-cloud-config-server这个工程里,路径为:openfirein\openfirein-cloud\openfirein-cloud-config-server\src\main\resources\properties\cloud-eureka-server-dev.yml

再这里在贴出来给大家伙看一看

#服务配置
server:
  port: 9800 # 端口号
  config:
    hostname: localhost #主机名
#表示是否将自己注册到Eureka Server上,默认为true,当前应用为Eureka Server所以无需注册
eureka:
  client:
    register-with-eureka: false
#表示是否从Eureka Server获取注册信息,默认为true。
#因为这是一个单点的Eureka Server,不需要同步其他的Eureka Server节点的数据,故而设为false。
    fetch-registry: false
#Eureka Server的访问地址,服务注册和client获取服务注册信息均通过该URL,多个服务注册地址用,隔开
    serviceUrl:
      defaultZone: http://${server.config.hostname}:${server.port}/eureka/

在EurekaServerStartApplication.java 上 右键 Run (请先保证ConfigServerStartApplication.java是启动的)

"C:\Program Files\Java\jdk1.8.0_60\bin\java" -Dspring.output.ansi.enabled=always -Didea.launcher.port=7534 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.1.3\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_60\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_60\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_60\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_60\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_60\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_60\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_60\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_60\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_60\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_60\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_60\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_60\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_60\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_60\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_60\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_60\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_60\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_60\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_60\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_60\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_60\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_60\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_60\jre\lib\rt.jar;D:\PROJECT\OpenFirein\openfirein\openfirein-cloud\openfirein-cloud-eureka-server\target\classes;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\springframework\boot\spring-boot-starter-web\1.5.4.RELEASE\spring-boot-starter-web-1.5.4.RELEASE.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\springframework\boot\spring-boot-starter\1.5.4.RELEASE\spring-boot-starter-1.5.4.RELEASE.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\springframework\boot\spring-boot\1.5.4.RELEASE\spring-boot-1.5.4.RELEASE.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\springframework\spring-core\4.3.9.RELEASE\spring-core-4.3.9.RELEASE.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\springframework\spring-context\4.3.9.RELEASE\spring-context-4.3.9.RELEASE.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\springframework\boot\spring-boot-autoconfigure\1.5.4.RELEASE\spring-boot-autoconfigure-1.5.4.RELEASE.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\springframework\boot\spring-boot-starter-logging\1.5.4.RELEASE\spring-boot-starter-logging-1.5.4.RELEASE.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\ch\qos\logback\logback-classic\1.1.11\logback-classic-1.1.11.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\ch\qos\logback\logback-core\1.1.11\logback-core-1.1.11.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\slf4j\jcl-over-slf4j\1.7.25\jcl-over-slf4j-1.7.25.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\slf4j\jul-to-slf4j\1.7.25\jul-to-slf4j-1.7.25.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\slf4j\log4j-over-slf4j\1.7.25\log4j-over-slf4j-1.7.25.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\yaml\snakeyaml\1.17\snakeyaml-1.17.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\springframework\boot\spring-boot-starter-tomcat\1.5.4.RELEASE\spring-boot-starter-tomcat-1.5.4.RELEASE.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\apache\tomcat\embed\tomcat-embed-core\8.5.15\tomcat-embed-core-8.5.15.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\apache\tomcat\embed\tomcat-embed-el\8.5.15\tomcat-embed-el-8.5.15.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\apache\tomcat\embed\tomcat-embed-websocket\8.5.15\tomcat-embed-websocket-8.5.15.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\hibernate\hibernate-validator\5.3.5.Final\hibernate-validator-5.3.5.Final.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\javax\validation\validation-api\1.1.0.Final\validation-api-1.1.0.Final.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\jboss\logging\jboss-logging\3.3.1.Final\jboss-logging-3.3.1.Final.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\fasterxml\classmate\1.3.3\classmate-1.3.3.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\fasterxml\jackson\core\jackson-databind\2.8.8\jackson-databind-2.8.8.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\fasterxml\jackson\core\jackson-annotations\2.8.0\jackson-annotations-2.8.0.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\fasterxml\jackson\core\jackson-core\2.8.8\jackson-core-2.8.8.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\springframework\spring-web\4.3.9.RELEASE\spring-web-4.3.9.RELEASE.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\springframework\spring-aop\4.3.9.RELEASE\spring-aop-4.3.9.RELEASE.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\springframework\spring-beans\4.3.9.RELEASE\spring-beans-4.3.9.RELEASE.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\springframework\spring-expression\4.3.9.RELEASE\spring-expression-4.3.9.RELEASE.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\springframework\spring-webmvc\4.3.9.RELEASE\spring-webmvc-4.3.9.RELEASE.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\springframework\cloud\spring-cloud-starter-config\1.3.1.RELEASE\spring-cloud-starter-config-1.3.1.RELEASE.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\springframework\cloud\spring-cloud-starter\1.2.2.RELEASE\spring-cloud-starter-1.2.2.RELEASE.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\springframework\cloud\spring-cloud-context\1.2.2.RELEASE\spring-cloud-context-1.2.2.RELEASE.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\springframework\security\spring-security-crypto\4.2.3.RELEASE\spring-security-crypto-4.2.3.RELEASE.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\springframework\cloud\spring-cloud-commons\1.2.2.RELEASE\spring-cloud-commons-1.2.2.RELEASE.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\springframework\security\spring-security-rsa\1.0.3.RELEASE\spring-security-rsa-1.0.3.RELEASE.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\bouncycastle\bcpkix-jdk15on\1.55\bcpkix-jdk15on-1.55.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\bouncycastle\bcprov-jdk15on\1.55\bcprov-jdk15on-1.55.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\springframework\cloud\spring-cloud-config-client\1.3.1.RELEASE\spring-cloud-config-client-1.3.1.RELEASE.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\springframework\cloud\spring-cloud-starter-eureka-server\1.3.1.RELEASE\spring-cloud-starter-eureka-server-1.3.1.RELEASE.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\springframework\cloud\spring-cloud-netflix-eureka-server\1.3.1.RELEASE\spring-cloud-netflix-eureka-server-1.3.1.RELEASE.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\springframework\boot\spring-boot-starter-actuator\1.5.4.RELEASE\spring-boot-starter-actuator-1.5.4.RELEASE.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\springframework\boot\spring-boot-actuator\1.5.4.RELEASE\spring-boot-actuator-1.5.4.RELEASE.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\springframework\boot\spring-boot-starter-freemarker\1.5.4.RELEASE\spring-boot-starter-freemarker-1.5.4.RELEASE.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\freemarker\freemarker\2.3.26-incubating\freemarker-2.3.26-incubating.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\springframework\spring-context-support\4.3.9.RELEASE\spring-context-support-4.3.9.RELEASE.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\springframework\cloud\spring-cloud-netflix-core\1.3.1.RELEASE\spring-cloud-netflix-core-1.3.1.RELEASE.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\springframework\cloud\spring-cloud-netflix-eureka-client\1.3.1.RELEASE\spring-cloud-netflix-eureka-client-1.3.1.RELEASE.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\netflix\eureka\eureka-client\1.6.2\eureka-client-1.6.2.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\codehaus\jettison\jettison\1.3.7\jettison-1.3.7.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\stax\stax-api\1.0.1\stax-api-1.0.1.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\netflix\netflix-commons\netflix-eventbus\0.3.0\netflix-eventbus-0.3.0.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\netflix\netflix-commons\netflix-infix\0.3.0\netflix-infix-0.3.0.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\commons-jxpath\commons-jxpath\1.3\commons-jxpath-1.3.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\joda-time\joda-time\2.9.9\joda-time-2.9.9.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\antlr\antlr-runtime\3.4\antlr-runtime-3.4.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\antlr\stringtemplate\3.2.1\stringtemplate-3.2.1.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\antlr\antlr\2.7.7\antlr-2.7.7.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\google\guava\guava\18.0\guava-18.0.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\google\code\gson\gson\2.8.0\gson-2.8.0.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\netflix\servo\servo-core\0.10.1\servo-core-0.10.1.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\netflix\archaius\archaius-core\0.7.4\archaius-core-0.7.4.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\apache\commons\commons-math\2.2\commons-math-2.2.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\thoughtworks\xstream\xstream\1.4.9\xstream-1.4.9.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\javax\ws\rs\jsr311-api\1.1.1\jsr311-api-1.1.1.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\netflix\servo\servo-internal\0.10.1\servo-internal-0.10.1.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\sun\jersey\jersey-core\1.19.1\jersey-core-1.19.1.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\sun\jersey\jersey-client\1.19.1\jersey-client-1.19.1.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\sun\jersey\contribs\jersey-apache-client4\1.19.1\jersey-apache-client4-1.19.1.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\apache\httpcomponents\httpclient\4.5.3\httpclient-4.5.3.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\apache\httpcomponents\httpcore\4.4.6\httpcore-4.4.6.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\commons-codec\commons-codec\1.10\commons-codec-1.10.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\google\inject\guice\4.1.0\guice-4.1.0.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\javax\inject\javax.inject\1\javax.inject-1.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\sun\jersey\jersey-servlet\1.19.1\jersey-servlet-1.19.1.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\sun\jersey\jersey-server\1.19.1\jersey-server-1.19.1.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\netflix\eureka\eureka-core\1.6.2\eureka-core-1.6.2.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\amazonaws\aws-java-sdk-core\1.11.9\aws-java-sdk-core-1.11.9.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\commons-logging\commons-logging\1.1.3\commons-logging-1.1.3.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\fasterxml\jackson\dataformat\jackson-dataformat-cbor\2.8.8\jackson-dataformat-cbor-2.8.8.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\amazonaws\aws-java-sdk-ec2\1.11.9\aws-java-sdk-ec2-1.11.9.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\amazonaws\aws-java-sdk-autoscaling\1.11.9\aws-java-sdk-autoscaling-1.11.9.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\amazonaws\aws-java-sdk-sts\1.11.9\aws-java-sdk-sts-1.11.9.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\amazonaws\aws-java-sdk-route53\1.11.9\aws-java-sdk-route53-1.11.9.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\javax\servlet\servlet-api\2.5\servlet-api-2.5.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\fasterxml\jackson\dataformat\jackson-dataformat-xml\2.8.8\jackson-dataformat-xml-2.8.8.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\codehaus\woodstox\woodstox-core-asl\4.4.1\woodstox-core-asl-4.4.1.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\javax\xml\stream\stax-api\1.0-2\stax-api-1.0-2.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\codehaus\woodstox\stax2-api\3.1.4\stax2-api-3.1.4.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\google\code\findbugs\jsr305\3.0.1\jsr305-3.0.1.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\commons-configuration\commons-configuration\1.8\commons-configuration-1.8.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\fasterxml\jackson\module\jackson-module-jaxb-annotations\2.8.8\jackson-module-jaxb-annotations-2.8.8.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\fasterxml\woodstox\woodstox-core\5.0.3\woodstox-core-5.0.3.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\xmlpull\xmlpull\1.1.3.1\xmlpull-1.1.3.1.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\xpp3\xpp3_min\1.1.4c\xpp3_min-1.1.4c.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\springframework\cloud\spring-cloud-starter-archaius\1.3.1.RELEASE\spring-cloud-starter-archaius-1.3.1.RELEASE.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\org\springframework\cloud\spring-cloud-starter-ribbon\1.3.1.RELEASE\spring-cloud-starter-ribbon-1.3.1.RELEASE.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\netflix\ribbon\ribbon\2.2.2\ribbon-2.2.2.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\netflix\ribbon\ribbon-core\2.2.2\ribbon-core-2.2.2.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\netflix\ribbon\ribbon-transport\2.2.2\ribbon-transport-2.2.2.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\netflix\ribbon\ribbon-loadbalancer\2.2.2\ribbon-loadbalancer-2.2.2.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\io\reactivex\rxjava\1.1.10\rxjava-1.1.10.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\io\reactivex\rxnetty\0.4.9\rxnetty-0.4.9.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\io\reactivex\rxnetty-contexts\0.4.9\rxnetty-contexts-0.4.9.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\io\reactivex\rxnetty-servo\0.4.9\rxnetty-servo-0.4.9.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\netflix\hystrix\hystrix-core\1.4.3\hystrix-core-1.4.3.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\io\netty\netty-codec-http\4.0.27.Final\netty-codec-http-4.0.27.Final.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\io\netty\netty-codec\4.0.27.Final\netty-codec-4.0.27.Final.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\io\netty\netty-transport\4.0.27.Final\netty-transport-4.0.27.Final.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\io\netty\netty-handler\4.0.27.Final\netty-handler-4.0.27.Final.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\io\netty\netty-buffer\4.0.27.Final\netty-buffer-4.0.27.Final.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\io\netty\netty-transport-native-epoll\4.0.27.Final\netty-transport-native-epoll-4.0.27.Final.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\io\netty\netty-common\4.0.27.Final\netty-common-4.0.27.Final.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\netflix\ribbon\ribbon-httpclient\2.2.2\ribbon-httpclient-2.2.2.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\netflix\netflix-commons\netflix-commons-util\0.1.1\netflix-commons-util-0.1.1.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\netflix\netflix-commons\netflix-statistics\0.1.1\netflix-statistics-0.1.1.jar;D:\regatta-workspace\ProgramFiles\apache-maven-3.3.9\MavenRepository\com\netflix\ribbon\ribbon-eureka\2.2.2\ribbon-eureka-2.2.2.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.1.3\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain com.openfirein.eureka.EurekaServerStartApplication
2017-07-14 16:15:03.956  INFO 11056 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@131ef10: startup date [Fri Jul 14 16:15:03 CST 2017]; root of context hierarchy
2017-07-14 16:15:04.163  INFO 11056 --- [           main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2017-07-14 16:15:04.198  INFO 11056 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'configurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$348780b8] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

::: http://${eureka.instance.hostname}:${server.port}/eureka/
::: OS (Windows 7)
::: JAVA (v1.8.0_60)
::: Spring-Boot (v1.5.4.RELEASE)

启动 Spring Cloud Eureka Server
链接: http://localhost:9800/
测试方式:http://localhost:9800

2017-07-14 16:15:04.905  INFO 11056 --- [           main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at: http://localhost:8088/
2017-07-14 16:15:05.442  INFO 11056 --- [           main] c.c.c.ConfigServicePropertySourceLocator : Located environment: name=cloud-eureka-server, profiles=[dev], label=master, version=null, state=null
2017-07-14 16:15:05.443  INFO 11056 --- [           main] b.c.PropertySourceBootstrapConfiguration : Located property source: CompositePropertySource [name='configService', propertySources=[MapPropertySource [name='classpath:/properties/cloud-eureka-server-dev.yml']]]
2017-07-14 16:15:05.446  INFO 11056 --- [           main] c.o.eureka.EurekaServerStartApplication  : No active profile set, falling back to default profiles: default
2017-07-14 16:15:05.463  INFO 11056 --- [           main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@fb9c7aa: startup date [Fri Jul 14 16:15:05 CST 2017]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@131ef10
2017-07-14 16:15:06.338  INFO 11056 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=202c24be-a27c-348a-bba9-20b02820d051
2017-07-14 16:15:06.355  INFO 11056 --- [           main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2017-07-14 16:15:06.423  INFO 11056 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.netflix.metrics.MetricsInterceptorConfiguration$MetricsRestTemplateConfiguration' of type [org.springframework.cloud.netflix.metrics.MetricsInterceptorConfiguration$MetricsRestTemplateConfiguration$$EnhancerBySpringCGLIB$$4a9a23fc] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-07-14 16:15:06.431  INFO 11056 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$348780b8] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-07-14 16:15:06.971  INFO 11056 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 9800 (http)
2017-07-14 16:15:06.979  INFO 11056 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2017-07-14 16:15:06.980  INFO 11056 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet Engine: Apache Tomcat/8.5.15
2017-07-14 16:15:07.145  INFO 11056 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2017-07-14 16:15:07.145  INFO 11056 --- [ost-startStop-1] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 1682 ms
2017-07-14 16:15:07.751  INFO 11056 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'metricsFilter' to: [/*]
2017-07-14 16:15:07.751  INFO 11056 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'characterEncodingFilter' to: [/*]
2017-07-14 16:15:07.751  INFO 11056 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2017-07-14 16:15:07.751  INFO 11056 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2017-07-14 16:15:07.751  INFO 11056 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'requestContextFilter' to: [/*]
2017-07-14 16:15:07.751  INFO 11056 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'webRequestTraceFilter' to: [/*]
2017-07-14 16:15:07.751  INFO 11056 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'servletContainer' to urls: [/eureka/*]
2017-07-14 16:15:07.752  INFO 11056 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'applicationContextIdFilter' to: [/*]
2017-07-14 16:15:07.752  INFO 11056 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean  : Mapping servlet: 'dispatcherServlet' to [/]
2017-07-14 16:15:07.828  INFO 11056 --- [ost-startStop-1] c.s.j.s.i.a.WebApplicationImpl           : Initiating Jersey application, version 'Jersey: 1.19.1 03/11/2016 02:08 PM'
2017-07-14 16:15:08.045  INFO 11056 --- [ost-startStop-1] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON encoding codec LegacyJacksonJson
2017-07-14 16:15:08.047  INFO 11056 --- [ost-startStop-1] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON decoding codec LegacyJacksonJson
2017-07-14 16:15:08.146  INFO 11056 --- [ost-startStop-1] c.n.d.provider.DiscoveryJerseyProvider   : Using XML encoding codec XStreamXml
2017-07-14 16:15:08.146  INFO 11056 --- [ost-startStop-1] c.n.d.provider.DiscoveryJerseyProvider   : Using XML decoding codec XStreamXml
2017-07-14 16:15:09.126  INFO 11056 --- [           main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@fb9c7aa: startup date [Fri Jul 14 16:15:05 CST 2017]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@131ef10
2017-07-14 16:15:09.230  INFO 11056 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2017-07-14 16:15:09.231  INFO 11056 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2017-07-14 16:15:09.236  INFO 11056 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/],methods=[GET]}" onto public java.lang.String org.springframework.cloud.netflix.eureka.server.EurekaController.status(javax.servlet.http.HttpServletRequest,java.util.Map<java.lang.String, java.lang.Object>)
2017-07-14 16:15:09.236  INFO 11056 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/lastn],methods=[GET]}" onto public java.lang.String org.springframework.cloud.netflix.eureka.server.EurekaController.lastn(javax.servlet.http.HttpServletRequest,java.util.Map<java.lang.String, java.lang.Object>)
2017-07-14 16:15:09.268  INFO 11056 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-07-14 16:15:09.268  INFO 11056 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-07-14 16:15:09.333  INFO 11056 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-07-14 16:15:09.802  INFO 11056 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/auditevents || /auditevents.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public org.springframework.http.ResponseEntity<?> org.springframework.boot.actuate.endpoint.mvc.AuditEventsMvcEndpoint.findByPrincipalAndAfterAndType(java.lang.String,java.util.Date,java.lang.String)
2017-07-14 16:15:09.803  INFO 11056 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/autoconfig || /autoconfig.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2017-07-14 16:15:09.804  INFO 11056 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/configprops || /configprops.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2017-07-14 16:15:09.804  INFO 11056 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/info || /info.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2017-07-14 16:15:09.805  INFO 11056 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/refresh || /refresh.json],methods=[POST]}" onto public java.lang.Object org.springframework.cloud.endpoint.GenericPostableMvcEndpoint.invoke()
2017-07-14 16:15:09.805  INFO 11056 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/archaius || /archaius.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2017-07-14 16:15:09.806  INFO 11056 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/heapdump || /heapdump.json],methods=[GET],produces=[application/octet-stream]}" onto public void org.springframework.boot.actuate.endpoint.mvc.HeapdumpMvcEndpoint.invoke(boolean,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) throws java.io.IOException,javax.servlet.ServletException
2017-07-14 16:15:09.807  INFO 11056 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/resume || /resume.json],methods=[POST]}" onto public java.lang.Object org.springframework.cloud.endpoint.GenericPostableMvcEndpoint.invoke()
2017-07-14 16:15:09.807  INFO 11056 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/service-registry/instance-status],methods=[GET]}" onto public org.springframework.http.ResponseEntity org.springframework.cloud.client.serviceregistry.endpoint.ServiceRegistryEndpoint.getStatus()
2017-07-14 16:15:09.807  INFO 11056 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/service-registry/instance-status],methods=[POST]}" onto public org.springframework.http.ResponseEntity<?> org.springframework.cloud.client.serviceregistry.endpoint.ServiceRegistryEndpoint.setStatus(java.lang.String)
2017-07-14 16:15:09.808  INFO 11056 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/beans || /beans.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2017-07-14 16:15:09.809  INFO 11056 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/metrics/{name:.*}],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.MetricsMvcEndpoint.value(java.lang.String)
2017-07-14 16:15:09.809  INFO 11056 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/metrics || /metrics.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2017-07-14 16:15:09.810  INFO 11056 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/env/{name:.*}],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EnvironmentMvcEndpoint.value(java.lang.String)
2017-07-14 16:15:09.810  INFO 11056 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/env || /env.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2017-07-14 16:15:09.811  INFO 11056 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/env],methods=[POST]}" onto public java.lang.Object org.springframework.cloud.context.environment.EnvironmentManagerMvcEndpoint.value(java.util.Map<java.lang.String, java.lang.String>)
2017-07-14 16:15:09.811  INFO 11056 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/env/reset],methods=[POST]}" onto public java.util.Map<java.lang.String, java.lang.Object> org.springframework.cloud.context.environment.EnvironmentManagerMvcEndpoint.reset()
2017-07-14 16:15:09.811  INFO 11056 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/dump || /dump.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2017-07-14 16:15:09.813  INFO 11056 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/loggers/{name:.*}],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.LoggersMvcEndpoint.get(java.lang.String)
2017-07-14 16:15:09.813  INFO 11056 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/loggers/{name:.*}],methods=[POST],consumes=[application/vnd.spring-boot.actuator.v1+json || application/json],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.LoggersMvcEndpoint.set(java.lang.String,java.util.Map<java.lang.String, java.lang.String>)
2017-07-14 16:15:09.813  INFO 11056 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/loggers || /loggers.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2017-07-14 16:15:09.813  INFO 11056 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/trace || /trace.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2017-07-14 16:15:09.815  INFO 11056 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/restart || /restart.json],methods=[POST]}" onto public java.lang.Object org.springframework.cloud.context.restart.RestartMvcEndpoint.invoke()
2017-07-14 16:15:09.815  INFO 11056 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/pause || /pause.json],methods=[POST]}" onto public java.lang.Object org.springframework.cloud.endpoint.GenericPostableMvcEndpoint.invoke()
2017-07-14 16:15:09.815  INFO 11056 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/mappings || /mappings.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2017-07-14 16:15:09.816  INFO 11056 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/health || /health.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.HealthMvcEndpoint.invoke(javax.servlet.http.HttpServletRequest,java.security.Principal)
2017-07-14 16:15:09.816  INFO 11056 --- [           main] o.s.b.a.e.mvc.EndpointHandlerMapping     : Mapped "{[/features || /features.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2017-07-14 16:15:09.935  INFO 11056 --- [           main] o.s.ui.freemarker.SpringTemplateLoader   : SpringTemplateLoader for FreeMarker: using resource loader [org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@fb9c7aa: startup date [Fri Jul 14 16:15:05 CST 2017]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@131ef10] and template loader path [classpath:/templates/]
2017-07-14 16:15:09.936  INFO 11056 --- [           main] o.s.w.s.v.f.FreeMarkerConfigurer         : ClassTemplateLoader for Spring macros added to FreeMarker configuration
2017-07-14 16:15:10.048  WARN 11056 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2017-07-14 16:15:10.048  INFO 11056 --- [           main] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2017-07-14 16:15:10.055  WARN 11056 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2017-07-14 16:15:10.055  INFO 11056 --- [           main] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2017-07-14 16:15:10.094  INFO 11056 --- [           main] o.s.c.n.eureka.InstanceInfoFactory       : Setting initial instance status as: STARTING
2017-07-14 16:15:10.131  INFO 11056 --- [           main] com.netflix.discovery.DiscoveryClient    : Initializing Eureka in region us-east-1
2017-07-14 16:15:10.131  INFO 11056 --- [           main] com.netflix.discovery.DiscoveryClient    : Client configured to neither register nor query for data.
2017-07-14 16:15:10.141  INFO 11056 --- [           main] com.netflix.discovery.DiscoveryClient    : Discovery Client initialized at timestamp 1500020110141 with initial instances count: 0
2017-07-14 16:15:10.211  INFO 11056 --- [           main] c.n.eureka.DefaultEurekaServerContext    : Initializing ...
2017-07-14 16:15:10.214  INFO 11056 --- [           main] c.n.eureka.cluster.PeerEurekaNodes       : Adding new peer nodes [http://localhost:9800/eureka/]
2017-07-14 16:15:10.348  INFO 11056 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON encoding codec LegacyJacksonJson
2017-07-14 16:15:10.348  INFO 11056 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using JSON decoding codec LegacyJacksonJson
2017-07-14 16:15:10.348  INFO 11056 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using XML encoding codec XStreamXml
2017-07-14 16:15:10.348  INFO 11056 --- [           main] c.n.d.provider.DiscoveryJerseyProvider   : Using XML decoding codec XStreamXml
2017-07-14 16:15:10.458  INFO 11056 --- [           main] c.n.eureka.cluster.PeerEurekaNodes       : Replica node URL:  http://localhost:9800/eureka/
2017-07-14 16:15:10.464  INFO 11056 --- [           main] c.n.e.registry.AbstractInstanceRegistry  : Finished initializing remote region registries. All known remote regions: []
2017-07-14 16:15:10.465  INFO 11056 --- [           main] c.n.eureka.DefaultEurekaServerContext    : Initialized
2017-07-14 16:15:10.537  INFO 11056 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup
2017-07-14 16:15:10.544  INFO 11056 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'environmentManager' has been autodetected for JMX exposure
2017-07-14 16:15:10.545  INFO 11056 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'configurationPropertiesRebinder' has been autodetected for JMX exposure
2017-07-14 16:15:10.546  INFO 11056 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'refreshEndpoint' has been autodetected for JMX exposure
2017-07-14 16:15:10.546  INFO 11056 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'restartEndpoint' has been autodetected for JMX exposure
2017-07-14 16:15:10.547  INFO 11056 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'serviceRegistryEndpoint' has been autodetected for JMX exposure
2017-07-14 16:15:10.547  INFO 11056 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'refreshScope' has been autodetected for JMX exposure
2017-07-14 16:15:10.549  INFO 11056 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'environmentManager': registering with JMX server as MBean [org.springframework.cloud.context.environment:name=environmentManager,type=EnvironmentManager]
2017-07-14 16:15:10.559  INFO 11056 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'restartEndpoint': registering with JMX server as MBean [org.springframework.cloud.context.restart:name=restartEndpoint,type=RestartEndpoint]
2017-07-14 16:15:10.568  INFO 11056 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'serviceRegistryEndpoint': registering with JMX server as MBean [org.springframework.cloud.client.serviceregistry.endpoint:name=serviceRegistryEndpoint,type=ServiceRegistryEndpoint]
2017-07-14 16:15:10.574  INFO 11056 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'refreshScope': registering with JMX server as MBean [org.springframework.cloud.context.scope.refresh:name=refreshScope,type=RefreshScope]
2017-07-14 16:15:10.600  INFO 11056 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'configurationPropertiesRebinder': registering with JMX server as MBean [org.springframework.cloud.context.properties:name=configurationPropertiesRebinder,context=fb9c7aa,type=ConfigurationPropertiesRebinder]
2017-07-14 16:15:10.605  INFO 11056 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'refreshEndpoint': registering with JMX server as MBean [org.springframework.cloud.endpoint:name=refreshEndpoint,type=RefreshEndpoint]
2017-07-14 16:15:10.753  INFO 11056 --- [           main] o.s.c.support.DefaultLifecycleProcessor  : Starting beans in phase 0
2017-07-14 16:15:10.753  INFO 11056 --- [           main] o.s.c.n.e.s.EurekaServiceRegistry        : Registering application cloud-eureka-server with eureka with status UP
2017-07-14 16:15:10.790  INFO 11056 --- [      Thread-11] o.s.c.n.e.server.EurekaServerBootstrap   : Setting the eureka configuration..
2017-07-14 16:15:10.791  INFO 11056 --- [      Thread-11] o.s.c.n.e.server.EurekaServerBootstrap   : Eureka data center value eureka.datacenter is not set, defaulting to default
2017-07-14 16:15:10.791  INFO 11056 --- [      Thread-11] o.s.c.n.e.server.EurekaServerBootstrap   : Eureka environment value eureka.environment is not set, defaulting to test
2017-07-14 16:15:10.799  INFO 11056 --- [      Thread-11] o.s.c.n.e.server.EurekaServerBootstrap   : isAws returned false
2017-07-14 16:15:10.800  INFO 11056 --- [      Thread-11] o.s.c.n.e.server.EurekaServerBootstrap   : Initialized server context
2017-07-14 16:15:10.800  INFO 11056 --- [      Thread-11] c.n.e.r.PeerAwareInstanceRegistryImpl    : Got 1 instances from neighboring DS node
2017-07-14 16:15:10.800  INFO 11056 --- [      Thread-11] c.n.e.r.PeerAwareInstanceRegistryImpl    : Renew threshold is: 1
2017-07-14 16:15:10.800  INFO 11056 --- [      Thread-11] c.n.e.r.PeerAwareInstanceRegistryImpl    : Changing status to UP
2017-07-14 16:15:10.805  INFO 11056 --- [      Thread-11] e.s.EurekaServerInitializerConfiguration : Started Eureka Server
2017-07-14 16:15:10.854  INFO 11056 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 9800 (http)
2017-07-14 16:15:10.854  INFO 11056 --- [           main] .s.c.n.e.s.EurekaAutoServiceRegistration : Updating port to 9800
2017-07-14 16:15:10.857  INFO 11056 --- [           main] c.o.eureka.EurekaServerStartApplication  : Started EurekaServerStartApplication in 7.831 seconds (JVM running for 8.347)
2017-07-14 16:16:10.801  INFO 11056 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry  : Running the evict task with compensationTime 0ms
2017-07-14 16:17:10.801  INFO 11056 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry  : Running the evict task with compensationTime 0ms
2017-07-14 16:18:10.801  INFO 11056 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry  : Running the evict task with compensationTime 0ms
2017-07-14 16:19:10.801  INFO 11056 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry  : Running the evict task with compensationTime 0ms
2017-07-14 16:20:10.801  INFO 11056 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry  : Running the evict task with compensationTime 0ms
2017-07-14 16:21:10.801  INFO 11056 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry  : Running the evict task with compensationTime 0ms
2017-07-14 16:22:10.801  INFO 11056 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry  : Running the evict task with compensationTime 0ms
2017-07-14 16:23:10.801  INFO 11056 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry  : Running the evict task with compensationTime 0ms
2017-07-14 16:24:10.801  INFO 11056 --- [a-EvictionTimer] c.n.e.registry.AbstractInstanceRegistry  : Running the evict task with compensationTime 0ms

访问 http://localhost:9800/

© 著作权归作者所有

共有 人打赏支持
O
粉丝 0
博文 6
码字总数 9552
作品 0
烟台
程序员
私信 提问
史上最简单的 SpringCloud 教程 | 第一篇: 服务的注册与发现(Eureka)

一、spring cloud简介spring cloud 为开发人员提供了快速构建分布式系统的一些工具,包括配置管理、服务发现、断路器、路由、微代理、事件总线、全局锁、决策竞选、分布式会话等等。它运行环...

方宏春
04/14
0
0
初探Spring Cloud(一)

什么是Spring Cloud? Spring提供了一系列工具,可以帮助开发人员迅速搭建分布式系统中的公共组件(比如:配置管理,服务发现,断路器,智能路由,微代理,控制总线,一次性令牌,全局锁,主...

__HuWei
昨天
0
0
升级微服务架构1:搭建Eureka Server服务中心

  Spring Cloud中使用Eureka来做服务注册和发现,来统一管理微服务实例。   1.使用IDEA创建一个空的Maven项目做父模块   (也可以不用父项目,所有模块都用平行结构)      删除父...

唐 森
08/22
0
0
史上最简单的 SpringCloud 教程 | 第一篇: 服务的注册与发现Eureka(Finchley版本)

版权声明:本文为博主原创文章,欢迎转载,转载请注明作者、原文超链接 ,博主地址:http://blog.csdn.net/forezp。 https://blog.csdn.net/forezp/article/details/81040925 转载请标明出处...

方志朋
07/14
0
0
业余草 SpringCloud 教程 | 第一篇: 服务的注册与发现Eureka(Finchley版本)

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xmt1139057136/article/details/81411887 一、spring cloud简介 鉴于《史上最简单的Spring Cloud教程》很受读...

业余草
08/04
0
0

没有更多内容

加载失败,请刷新页面

加载更多

Java提高班(六)反射和动态代理(JDK Proxy和Cglib)

反射和动态代理放有一定的相关性,但单纯的说动态代理是由反射机制实现的,其实是不够全面不准确的,动态代理是一种功能行为,而它的实现方法有很多。要怎么理解以上这句话,请看下文。 一、...

王磊的博客
17分钟前
1
0
Ext grid 渲染

// 单元格字体颜色渲染function renderer_Meta_useStatus(value, cellmeta, record,rowIndex, columnIndex, store){ var color = ""; if("空闲"==value){ color = "green";......

MoksMo
27分钟前
4
0
log4j2在spring中的配置

<?xml version="1.0" encoding="UTF-8"?><!--日志级别以及优先级排序: OFF > FATAL > ERROR > WARN > INFO > DEBUG > TRACE > ALL --><!--Configuration后面的status,这个用于设置l......

TonyTaotao
33分钟前
3
0
java 中间变量缓存机制(i++,++i)

public class Test { public static void main(String[] args) { int i = 0; i = i ++ ; System.out.println(i); } } 答案是 0 如果是 i = ++......

shzwork
40分钟前
5
0
初识多线程及其原理-笔记

什么情况下应该使用多线程? 通过并行计算提高程序执行性能 需要等待网络、I/O响应导致耗费大量的执行时间, 可以采用异步线程的方式来减少阻塞 tomcat7 以前的io模型 客户端阻塞 线程级别阻...

Java搬砖工程师
51分钟前
2
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部