【轉】從 Spring 項目中禁用 nacos

轉自:https://blog.csdn.net/weixin_44828157/article/details/127723188

在 application.yml 中添加以下配置即可:

spring:
  cloud:
    nacos:
      config:
        enabled: false
        refresh-enabled: false
      discovery:
        enabled: false
        instance-enabled: false

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章