在windows10系统下
启动的日志:
pom文件的配置:
org.springframework.cloud
spring-cloud-starter-alibaba-nacos-discovery
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Greenwich.SR1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
<version>0.9.0.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
在nacose的服务器列表中没有看到有服务注入
面向未来微服务:熟练掌握Spring Cloud Alibaba
了解课程