Cannot resolve symbol for EnableEurekaServer in intelliJ. Yes I have the dependency/invalidated+rest

博客围绕IntelliJ中无法解析@EnableEurekaServer的问题展开,指出解决方案是在pom.xml里定义引入相应包的版本。对于Spring Boot项目,若不指定依赖版本,特殊依赖管理插件可能无法为特定依赖提供版本。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

https://stackoverflow.com/questions/49328567/cannot-resolve-symbol-for-enableeurekaserver-in-intellij-yes-i-have-the-depende

 

解决方案:要在pom.xml里面定义引入相应包的版本

2 Answers

active oldest votes

1

Use the dependency with the specific version, current version at the moment of this writing is:

compile('org.springframework.cloud:spring-cloud-netflix-eureka-server:1.4.3.RELEASE')

You can find the latest available version number here.

For Spring Boot projects when you don't specify the dependency version, the special dependency management plug-in is used. For some reason it fails to provide the version for this specific dependency. See the related question.

shareimprove this answer

answered Mar 16 '18 at 20:43

CrazyCoder

291k5353 gold badges680680 silver badges682682 bronze badges

  • Ahhh I see i see! thank you for explaining. Do you mind checking out this image and see if you can figure out why I am getting this error: imgur.com/a/5Dafv – Syn Mar 16 '18 at 21:20

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值