1.添加依赖 com.alibaba.cloud spring-cloud-starter-alibaba-nacos-discovery 2.2.9.RELEASE com.alibaba.cloud spring-cloud-starter-alibaba-nacos-config 2.2.9.RELEASE 2.注册中心 1、把Nacos的Ip和端口配置配置文件中 2、在启动类上加上@EnableDiscoveryClient注解 3、同一类的服务可以指定Group

关注 更多

空空如也 ~ ~

粉丝 更多

空空如也 ~ ~