whyyouhitme_
whyyouhitme_
采纳率65.7%
2018-12-31 15:53 阅读 12.8k

eureka配置文件无法解析配置属性Cannot resolve configuration property

图片说明

黄色的那三条。永远提示Cannot resolve configuration property

一下是springcloud和eureka的配置

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Finchley.M9</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<spring-cloud.version>Finchley.M9</spring-cloud.version

eureka


<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
</dependency>
</dependencies>
  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

  • weixin_43241409 weixin_43241409 2019-08-13 09:16

    你给导入的依赖(eureka)加个版本号(最好是最新的)即可,去mvn资料库查找

    点赞 1 评论 复制链接分享

相关推荐