spring cloud eureka配置教程

spring cloud eureka作为办事注册中间,若何设置装备摆设eureka,来启动一个eureka实例呢,下面将具体介绍

东西/原料

  • intellij idea

方式/步调

  1. 1

    打开intellij idea,建立spring boot项目

  2. 2

    添加maven依靠,代码如下

    <dependency>

           <groupId>org.springframework.cloud</groupId>

           <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>

    </dependency>

  3. 3

    添加@EnableEurekaServer注解,如下图所示

  4. 4

    点窜application.properties设置装备摆设文件,设置sever.port

  5. 5

    点击启动按钮,启动应用法式

  6. 6

    拜候应用,打开eureka界面,如下图所示

注重事项

  • spring cloud eureka
  • 留下点赞记实再走吧
  • 发表于 2018-10-15 00:00
  • 阅读 ( 741 )
  • 分类:其他类型

你可能感兴趣的文章

相关问题

0 条评论

请先 登录 后评论
admin
admin

0 篇文章

作家榜 »

  1. xiaonan123 189 文章
  2. 汤依妹儿 97 文章
  3. luogf229 46 文章
  4. jy02406749 45 文章
  5. 小凡 34 文章
  6. Daisy萌 32 文章
  7. 我的QQ3117863681 24 文章
  8. 华志健 23 文章

联系我们:uytrv@hotmail.com 问答工具