当前位置: 首页 > news >正文

Nacos 抽取公共配置

文章目录

    • 创建一个公共配置文件
    • 其他配置文件引用
    • springboot配置文件

创建一个公共配置文件

在这里插入图片描述

其他配置文件引用

${变量}

在这里插入图片描述

springboot配置文件

spring:cloud:nacos:discovery:server-addr: @current.ip@:8848namespace: word_register_proconfig:server-addr: @current.ip@:8848auto-refresh: truebootstrap:enable: truenamespace: word_config_profile-extension: propertiesext-config:- auto-refresh: truedata-id: jdbc.propertiesenable-remote-sync-config: true#            group: DEFAULT_GROUP#            namespace: word_config_devtype: properties- auto-refresh: truedata-id: redis.propertiesenable-remote-sync-config: truetype: properties- auto-refresh: truedata-id: minio.propertiesenable-remote-sync-config: truetype: properties- auto-refresh: truedata-id: customProperty.propertiesenable-remote-sync-config: truetype: propertiesshared-dataids: application.propertiesrefreshable-dataids: application.properties
http://www.lryc.cn/news/107355.html

相关文章:

  • Promise、Async/Await 详解
  • PoseiSwap:基于 Nautilus Chain ,构建全新价值体系
  • uC-OS2 V2.93 STM32L476 移植:串口打印篇
  • 代码随想录算法训练营第四十六天| 139.单词拆分 背包问题总结
  • 【机器学习】西瓜书习题3.3Python编程实现对数几率回归
  • Blazor前后端框架Known-V1.2.9
  • 【3D捏脸功能实现】
  • Kafka的零拷贝
  • 如何使用Python进行数据分析?
  • 概率论与数理统计复习总结3
  • PHP正则绕过解析
  • Hive巡检脚本
  • 【状态估计】基于UKF法、AUKF法的电力系统三相状态估计研究(Matlab代码实现)
  • webpack复习
  • 开始学习 Kafka,一文掌握基本概念|Kafka 系列 一
  • Couldn‘t lock the file :/tmp/bbc-filesystem-base_syscache_service
  • vscode 通过mongoose 连接mongodb atlas
  • 记录 Vue3 + Ts 类型使用
  • 主从同步带来的业务问题
  • 主动带宽控制工具
  • 数据采集的方法有哪些?
  • linux重新学习-纪录篇
  • 为机器人装“大脑” 谷歌发布RT-2大模型
  • JavaEE 面试常见问题
  • 06 HTTP(下)
  • clickhouse调研报告2
  • TensorRT学习笔记--基于TensorRT部署YoloV3, YoloV5和YoloV8
  • 原型链污染,nodejs逃逸例子
  • nlohmann::json 中文乱码解决方案
  • IDEA中maven项目失效,pom.xml文件橙色/橘色