

com.alibaba.cloud
spring-cloud-starter-alibaba-nacos-config
再建一个 bootstrap.properties文件
#nacos的名称 bootstrap优先级高于properties spring.application.name=springcloud-order #nacos配置中心地址 spring.cloud.nacos.config.server-addr=localhost:81

把配置文件appliction的内容粘贴到nacos里 再测试访问


@RefreshScope//实时刷新配置====自定义配置内容 修改zhangsan不用再从新启动了


把product共和order中数据库链接分开



检查错误出现在哪
加依赖
org.springframework.cloud spring-cloud-starter-sleuth

解压缩 ZIpkin
访问:http://localhost:9411/zipkin/
org.springframework.cloud spring-cloud-starter-zipkin



