Springboot使用Nacos做配置中心)
Springboot使用Nacos做配置中心 环境 项目配置 高级使用 配置dev,prod,test环境 微服务之间互相隔离配置 每个微服务创建自己的命名空间,使用配置分组区分环境,dev,test,prod 环境 jdk: 1.8 maven: 3.6.3 Idea 项目配置 新建一个Springboot项目,用Idea自动创建就可以,下面开始使用。 引入SpringcloudAlibaba依赖 < dependencyManagement > < dependencies > < dependency > < groupId > com . alibaba . cloud < / groupId > < artifactId > spring - cloud - alibaba - dependencies < / artifactId > < version > 2.2 .0 . RELEASE < / version > < type > pom < / type > < scope > import < / scope > < / dependency > < / dependencies > < / dependencyManagement > 然后再引入config依赖 < dependency > < groupId > com . alibaba . cloud