nacos配置步骤:
1. 服务下载地址:https://github.com/alibaba/nacos
2. 解压: tar -xvf nacos-server-$version.tar.gz
3. 启动:cd nacos/bin
sh startup.sh -m standalone
工程配置
1. 依赖
<!-- nacos 依赖 -->
<dependency>
<groupId>com.alibaba.boot</groupId>
<artifactId>nacos-config-spring-boot-starter</artifactId>
<version> 2.1.0.RELEASE</version>
</dependency>
访问:http://localhost:8848/nacos/index.html
Nacos的AP与CP切换
https://blog.csdn.net/delicious_life/article/details/106791693