当前位置: 首页 > news >正文

服务注册不进eureka

手动导入eureka依赖遇到过的情况:

  1. 使用不了@EnableDiscoveryClient注解,需要手动再导入 Spring Cloud Commons依赖
  2. 服务注册不进eureka

发现eureka-client的jar包不全

正常情况下的eureka-client的jar包

原因:导错依赖

原来的依赖

<dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-netflix-eureka-client</artifactId>
</dependency>

改正后的依赖

<dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>

http://www.taodudu.cc/news/show-1476394.html

相关文章:

  • 【操作系统】进程管理
  • uni-app 自定义tabbar
  • SOLIDWORKS 2024零件特征功能增强
  • 力扣刷题 day2
  • mybatis 跨库查询 mysql
  • 正则表达式和Lambda表达式的使用和区别(C++)
  • Spring Cloud总结
  • 在此之前的博客地址
  • golang利用反射写入excel的简单工具类
  • 实习工作难点记录
  • c 结构体之位域(位段)
  • 辗转相除求最大公约数,最大公倍数
  • Ubuntu“无法解析或打开软件包的列表或是状态文件”的解决办法。
  • 错误:cc1: error: unrecognized command line option “-m32”
  • 在编写mini2440 helloworld驱动遇到的问题
  • [leetcode] Median of Two Sorted Arrays 寻找两个有序数组的中位数
  • [leetcode] Reverse Integer 反转一个整数
  • [leetcode] Palindrome Number 回文数判断
  • [leetcode] Longest Common Prefix 字符窜最长公共前缀判断
  • [leetcode] Single Number 查找数组中的单数
  • [leetcode] Power of Two 判断一个数是否是2的平方
  • [leetcode] Max Points on a Line 判断最多有多少个点在同一条直线上
  • 使用selenium webdriver进行元素定位
  • 一个动态增长的栈实现
  • sublime cscope使用方法
  • [leetcode] 24. Swap Nodes in Pairs
  • sublime text常用快捷键整理
  • kmp算法字符串匹配C语言实现
  • VLC设置串流的TTL值
  • [leetcode]328. Odd Even Linked List
  • [leetcode]326. Power of Three(c语言)
  • [leetcode ]221. Maximal Square c语言
  • [leetcode]84. Largest Rectangle in Histogram c语言
  • [leetcode]36. Valid Sudoku c语言
  • python 中 print 函数用法总结
  • python 装饰器粗浅理解