idea使用spring intaller 创建eureka服务踩坑记录

1.SpringBoot与SpringCloud的版本号需要一一对应,具体内容请查看官网。
2.Maven引入Eureka包时,可能出现无法找到的情况,需要指定具体Eureka,才能够下载。
3.SpringCloud不同版本相关类存放在不同的包中,导致Eureka初始化时无法找到相关bean,启动报错。
以下是本人Eureka服务相关设置

<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd"><modelVersion>4.0.0</modelVersion><parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>2.0.1.RELEASE</version><relativePath/> <!-- lookup parent from repository --></parent><groupId>com.example</groupId><artifactId>eurekatest</artifactId><version>0.0.1-SNAPSHOT</version><name>eurekatest</name><description>Demo project for Spring Boot</description><properties><java.version>1.8</java.version><spring-cloud.version>Finchley.RELEASE</spring-cloud.version></properties><dependencies><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-test</artifactId><scope>test</scope></dependency><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-netflix-eureka-server</artifactId></dependency><dependency><groupId>org.junit.jupiter</groupId><artifactId>junit-jupiter</artifactId><version>RELEASE</version><scope>test</scope></dependency></dependencies><dependencyManagement><dependencies><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-dependencies</artifactId><version>${spring-cloud.version}</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></repository></repositories></project>

相关yml配置

server:port: 8761
eureka:instance:hostname: localhostclient:register-with-eureka: falsefetch-registry: false

以上仅为防踩坑记录

springcloud踩坑记录1相关推荐

  1. 日常踩坑记录-汇总版

    开发踩坑记录,不定时更新 心得 RTFM 严谨的去思考问题,处理问题 严格要求自己的代码编写习惯与风格 注意 单词拼写 20200207 mybatis plus 自带insert插入异常 sql i ...

  2. 为Jupyter notebook配置R kernel过程及踩坑记录

    为Jupyter notebook配置R kernel过程及踩坑记录 注意:本文为作者安装过程及折腾的过程,内容比较冗杂,如果读者想直接创建一个属于自己的子环境则参考: 如下文章: anaconda下 ...

  3. Python打包工具Pyintealler打包py文件为windows exe文件过程及踩坑记录+实战例子

    Python打包工具Pyintealler打包py文件为windows exe文件过程及踩坑记录+实战例子 目录 Python打包工具Pyintealler打包py文件为windows exe文件过程 ...

  4. TVM: Deep Learning模型的优化编译器(强烈推荐, 附踩坑记录)

    本文作者是阿莱克西斯,原载于知乎,雷锋网(公众号:雷锋网)获得授权转载. (前排提醒,本文的人文内容部分稍稍带有艺术加工,请保持一定的幽默感进行阅读) 关注我最近想法的同学应该知道我最近都在把玩 TV ...

  5. 使用Java读取 “Python写入redis” 的数据踩坑记录

    https://my.oschina.net/u/2338224/blog/3061507 使用Java读取 "Python写入redis" 的数据踩坑记录 https://seg ...

  6. osx php7 imagick,[PHP] MacOS 自带php环境安装imagick扩展踩坑记录 | 码农部落

    前言 最近学习yii2,在搭建环境后,发现在访问contact页面时报错,如下: "Either GD PHP extension with FreeType support or Imag ...

  7. vue-i18n使用及踩坑记录

    使用步骤 1. 安装 npm i vue-i18n 2. vue-cli下使用 //1. 引入 vue-i18n import Vue from 'vue' import VueI18n from ' ...

  8. SpringBoot踩坑记录 Invalid bound statement (not found)引发的一些列问题

    SpringBoot踩坑记录 Invalid bound statement (not found)引发的一些列问题 当你开开心心搭建了一个SpringBoot项目,用插件生成了entity.dao. ...

  9. mysql 使用sum limit_mysql踩坑记录之limit和sum函数混合使用问题

    问题复盘 本次复盘会用一个很简单的订单表作为示例. 数据准备 订单表建表语句如下(这里偷懒了,使用了自增ID,实际开发中不建议使用自增ID作为订单ID) CREATE TABLE `order` ( ...

最新文章

  1. 半平面交比较好的博客
  2. 【超越EfficientNet】无需注意力,Transformer结合视觉任务实现新SOTA
  3. maven+eclipse编译常见问题
  4. Android常见XML属性解析
  5. lg g7 android9,随着Android 11的临近 LG G7 ThinQ在其最后一家美国运营商处获得了Android 9更新...
  6. java 21 - 6 字符缓冲流的特殊方法以及该方法高效复制文件
  7. 第一章 统计学概论
  8. SQL Server 2008下日志清理方法
  9. 《SharePoint Portal Server 2003 深入指南》即将完稿 大纲
  10. vbs按钮传递过程_iOS面试题:事件传递和响应机制
  11. 【Decision Tree】林轩田机器学习技法
  12. 数电课程设计数字钟c语言编程,数电数字钟设计,含源码
  13. AWS EMR 上 Spark 任务 Container killed Exit code 137 错误
  14. 小僧尽知他的备细出 水浒
  15. bilibil网站采集 返回视频下载地址【代码】
  16. 上海公积金销户问题--程序员
  17. Linux-5.10源代码之网络系统简介:
  18. 3Dmax_三维模型无法处理平滑解决方案
  19. 周转时间和带权周转时间的计算
  20. RT_thread 独立看门狗 watchdog 不断自动复位的解决方法

热门文章

  1. linux http查看网页,【Linux C/C++】 第09讲 HTTP协议与浏览器显示网页
  2. 关于封包工具一上午的研究总结
  3. 神器!用Python轻松搞定验证码!
  4. 满满干货 | 建议收藏,这样做报价表,才是真的完美又专业.
  5. ubuntu 找不到libGL.so.1
  6. Nokia NBU备份文件查看工具(包含联系人和短信)
  7. 主键约束和唯一性约束的区别
  8. 让青少年亲身体验少儿编程的乐趣
  9. 实验笔记之——单片机烧录的实验过程
  10. Oracle 正则表达式详解(regexp_substr、regexp_instr、regexp_replace、regexp_like)